mirror of
https://github.com/QwIT-Development/firka-extension.git
synced 2026-06-12 03:41:39 +02:00
firefox addon store bullshit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user