firefox addon store bullshit

This commit is contained in:
Zan
2025-12-10 15:51:37 +01:00
parent 75d6cc4676
commit f6a52b73de
15 changed files with 451 additions and 551 deletions

View File

@@ -154,15 +154,15 @@
if (userName) {
await storageManager.set("userName", userName);
}
document.body.innerHTML = '';
const parser = new DOMParser();
const doc = parser.parseFromString(createHTML(
helper.clearElement(document.body);
const template = document.createElement('template');
template.innerHTML = createHTML(
schoolCode,
fullSchoolName,
userName,
settings,
), 'text/html');
const tempDiv = doc.body;
);
const tempDiv = template.content;
while (tempDiv.firstChild) {
document.body.appendChild(tempDiv.firstChild);
}