1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-06 23:34:05 +02:00

Fix bootstrap script issues (wrong ID and stylesheets appearing in notifications)

This commit is contained in:
chylex 2021-12-24 15:31:10 +01:00
parent 427975e5ce
commit 273e7266eb
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -8,7 +8,7 @@
const script = document.createElement("script");
script.async = false;
script.type = "text/javascript";
script.id = "tweetduck-bootstrap-{namespace}";
script.id = `tweetduck-bootstrap-${namespace}`;
script.src = "td://resources/load.js";
script.setAttribute("data-namespace", namespace);
script.setAttribute("data-modules", modules);
@ -19,6 +19,7 @@
style.id = `tweetduck-styles-${namespace}-${stylesheet}`;
style.rel = "stylesheet";
style.href = `td://resources/${namespace}/${stylesheet}.css`;
style.setAttribute("data-td-exclude-notification", "");
document.head.appendChild(style);
}
})();