parent
5d2c42788e
commit
adbbfb0de1
8
popup.js
8
popup.js
|
@ -2,13 +2,9 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||||
const headerIcon = document.querySelector("#sgdb-icon");
|
const headerIcon = document.querySelector("#sgdb-icon");
|
||||||
const nesIcon = document.querySelector("#nes-icon");
|
const nesIcon = document.querySelector("#nes-icon");
|
||||||
const giteaIcon = document.querySelector("#gitea-icon");
|
const giteaIcon = document.querySelector("#gitea-icon");
|
||||||
if(chrome) {
|
if(typeof browser === "undefined")
|
||||||
headerIcon.src = chrome.runtime.getURL("icons/icon_32.png");
|
var browser = chrome;
|
||||||
nesIcon.src = chrome.runtime.getURL("icons/nes_32.png");
|
|
||||||
giteaIcon.src = chrome.runtime.getURL("icons/gitea_32.png");
|
|
||||||
} else {
|
|
||||||
headerIcon.src = browser.runtime.getURL("icons/icon_32.png");
|
headerIcon.src = browser.runtime.getURL("icons/icon_32.png");
|
||||||
nesIcon.src = browser.runtime.getURL("icons/nes_32.png");
|
nesIcon.src = browser.runtime.getURL("icons/nes_32.png");
|
||||||
giteaIcon.src = browser.runtime.getURL("icons/gitea_32.png");
|
giteaIcon.src = browser.runtime.getURL("icons/gitea_32.png");
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue