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

View File

@ -15,7 +15,7 @@
//console.log("bf")
addInitHook("end_init", () => {
//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(navigator.userAgent.indexOf("Firefox") != -1) $.trumbowyg.svgPath = "/s/trumbowyg/ui/icons.svg";