Skip to content

Commit

Permalink
remove hardcoded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sera619 committed May 26, 2023
1 parent 131d301 commit f0700de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ function changePreviewIcon(icontype) {
var iconpreview = document.getElementById("previewimg");
switch (icontype) {
case "normal":
iconpreview.src = chrome.runtime.getURL("../assets/img/icons/normal/icon128.png");
iconpreview.src = chrome.runtime.getURL(ICON_DEFAULT_PATHS[128]);
break;
case "binary":
iconpreview.src = chrome.runtime.getURL("../assets/img/icons/binarycode/icon128.png");
iconpreview.src = chrome.runtime.getURL(ICON_BINARY_PATHS[128]);
break;
case "web-key":
iconpreview.src = chrome.runtime.getURL("../assets/img/icons/web-security/icon128.png");
iconpreview.src = chrome.runtime.getURL(ICON_WEB_KEY_PATHS[128]);
break;
case "smart-key":
iconpreview.src = chrome.runtime.getURL("../assets/img/icons/smart-key/icon128.png");
iconpreview.src = chrome.runtime.getURL(ICON_SMART_KEY_PATHS[128]);
break;
case "hacker":
iconpreview.src = chrome.runtime.getURL("../assets/img/icons/hacker/icon128.png");
iconpreview.src = chrome.runtime.getURL(ICON_HACKER_PATHS[128]);
break;
default:
break;
Expand Down

0 comments on commit f0700de

Please sign in to comment.