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:
parent
427975e5ce
commit
273e7266eb
3
Resources/Content/bootstrap.js
vendored
3
Resources/Content/bootstrap.js
vendored
@ -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);
|
||||
}
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user