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