mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-18 05:34:08 +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");
|
const script = document.createElement("script");
|
||||||
script.async = false;
|
script.async = false;
|
||||||
script.type = "text/javascript";
|
script.type = "text/javascript";
|
||||||
script.id = "tweetduck-bootstrap-{namespace}";
|
script.id = `tweetduck-bootstrap-${namespace}`;
|
||||||
script.src = "td://resources/load.js";
|
script.src = "td://resources/load.js";
|
||||||
script.setAttribute("data-namespace", namespace);
|
script.setAttribute("data-namespace", namespace);
|
||||||
script.setAttribute("data-modules", modules);
|
script.setAttribute("data-modules", modules);
|
||||||
@ -19,6 +19,7 @@
|
|||||||
style.id = `tweetduck-styles-${namespace}-${stylesheet}`;
|
style.id = `tweetduck-styles-${namespace}-${stylesheet}`;
|
||||||
style.rel = "stylesheet";
|
style.rel = "stylesheet";
|
||||||
style.href = `td://resources/${namespace}/${stylesheet}.css`;
|
style.href = `td://resources/${namespace}/${stylesheet}.css`;
|
||||||
|
style.setAttribute("data-td-exclude-notification", "");
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user