revert: firefox support from now

This commit is contained in:
wanhose 2020-05-24 19:31:01 +02:00
parent 93e8a3832e
commit 3a42195229

View File

@ -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);
}; };