require winchan, rather than use getScript()

This commit is contained in:
Paul Rodwell 2024-08-05 14:04:39 +01:00
parent 99e25947f9
commit b16dadb39d
No known key found for this signature in database
GPG Key ID: 083BA337597C49E6

View File

@ -13,6 +13,8 @@
###
WinChan = require('./winchan.js')
settings = {}
claim_wiki = () ->
@ -143,7 +145,6 @@ setup = (user) ->
lastCookie = currentCookie
, 100
wiki.getScript '/security/winchan.js'
if (!$("link[href='/security/style.css']").length)
$('<link rel="stylesheet" href="/security/style.css">').appendTo("head")
myInit = {