Firefox addons fix

This commit is contained in:
Zan
2025-09-08 21:51:55 +02:00
parent 110ba0d4fb
commit b4a270a8d2
17 changed files with 1186 additions and 566 deletions

View File

@@ -127,12 +127,17 @@
if (userName) {
cookieManager.set("userName", userName);
}
document.body.innerHTML = createHTML(
document.body.innerHTML = '';
const parser = new DOMParser();
const doc = parser.parseFromString(createHTML(
schoolCode,
fullSchoolName,
userName,
);
), 'text/html');
const tempDiv = doc.body;
while (tempDiv.firstChild) {
document.body.appendChild(tempDiv.firstChild);
}