fix js errors on cosora including the registration one

fixes #64
This commit is contained in:
Azareal 2019-11-13 09:16:51 +10:00
parent 9ab3eff272
commit f0a0e1acb3
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
//console.log("bf") //console.log("bf")
addInitHook("end_init", () => { addInitHook("end_init", () => {
//console.log("af") //console.log("af")
let loggedIn = document.head.querySelector("[property='x-loggedin']").content; let loggedIn = document.head.querySelector("[property='x-loggedin']").content == "true";
if(loggedIn) { if(loggedIn) {
if(navigator.userAgent.indexOf("Firefox") != -1) $.trumbowyg.svgPath = "/s/trumbowyg/ui/icons.svg"; if(navigator.userAgent.indexOf("Firefox") != -1) $.trumbowyg.svgPath = "/s/trumbowyg/ui/icons.svg";