revert: firefox support from now
This commit is contained in:
parent
93e8a3832e
commit
3a42195229
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
if (!!window.chrome && navigator.vendor.includes("Google")) {
|
if (!!window.chrome && navigator.vendor.includes("Google")) {
|
||||||
const head = document.head || document.getElementsByTagName('head')[0];
|
const head = document.head || document.getElementsByTagName('head')[0];
|
||||||
const runtime = browser.runtime || chrome.runtime;
|
|
||||||
|
|
||||||
// Create logic script
|
// Create logic script
|
||||||
const script = document.createElement("script");
|
const script = document.createElement("script");
|
||||||
script.setAttribute("src", runtime.getURL("js/modules/script.js"));
|
script.setAttribute("src", chrome.runtime.getURL("js/modules/script.js"));
|
||||||
script.setAttribute("type", "module");
|
script.setAttribute("type", "module");
|
||||||
|
|
||||||
// Inject logic script
|
// Inject logic script
|
||||||
head.appendChild(script);
|
head.appendChild(script);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user