1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-17 11:34:09 +02:00
TweetDuck/Resources/Scripts/bootstrap.js

19 lines
606 B
JavaScript

(function() {
document.documentElement.id = "tduck";
const script = document.createElement("script");
script.async = false;
script.type = "text/javascript";
script.id = "tweetduck-bootstrap-{namespace}";
script.src = "td://resources/load.js";
script.setAttribute("data-namespace", "{namespace}");
script.setAttribute("data-modules", "{modules}");
document.head.appendChild(script);
const style = document.createElement("link");
style.id = "tweetduck-styles-{namespace}";
style.rel = "stylesheet";
style.href = "td://resources/styles/{stylesheet}";
document.head.appendChild(style);
})();