Build folder rename

This commit is contained in:
2022-09-14 09:27:52 +03:00
parent 36d249f92b
commit d13e318fe6
6 changed files with 1 additions and 1 deletions

26
extension/run.js Normal file
View File

@@ -0,0 +1,26 @@
// noinspection SpellCheckingInspection
(function twitchNotes() {
const head = document.getElementsByTagName("head")[0];
if (!head) {
return;
}
if (!document.querySelector("script#twitchNotesScript")) {
const script = document.createElement("script");
script.type = "text/javascript";
script.src = chrome.runtime.getURL("twitch-notes.js");
script.id = "twitchNotesScript";
head.appendChild(script);
}
// if (!document.querySelector("style#twitchNotesStyle")) {
// const style = document.createElement("link");
// style.setAttribute("href", chrome.runtime.getURL("twitch-notes.css"));
// style.setAttribute("type", "text/css");
// style.setAttribute("rel", "stylesheet");
// style.setAttribute("crossorigin", "anonymous");
// style.id = "twitchNotesStyle";
// head.appendChild(style);
// }
})();