diff --git a/starters/chrome/extension/content.js b/starters/chrome/extension/content.js index 11dcdd02a..950286d9a 100644 --- a/starters/chrome/extension/content.js +++ b/starters/chrome/extension/content.js @@ -12,9 +12,9 @@ // Add CHROME MSG listener chrome.runtime.onMessage.addListener(req => { - if (req.action === 'notify') notify(req.msg, req.position) - else if (req.action === 'alert') siteAlert(req.title, req.msg, req.btns) - else if (req.action === 'syncStorageToUI') syncStorageToUI() + if (req.action == 'notify') notify(req.msg, req.position) + else if (req.action == 'alert') siteAlert(req.title, req.msg, req.btns) + else if (req.action == 'syncStorageToUI') syncStorageToUI() }) // Init CONFIG diff --git a/starters/chrome/extension/popup/popup.js b/starters/chrome/extension/popup/popup.js index 78eb9f8c4..dd03349a9 100644 --- a/starters/chrome/extension/popup/popup.js +++ b/starters/chrome/extension/popup/popup.js @@ -24,7 +24,7 @@ updateSpan.addEventListener('click', () => { window.close(); // popup chrome.runtime.requestUpdateCheck((status, details) => { - alertToUpdate(status === 'update_available' ? details.version : '') + alertToUpdate(status == 'update_available' ? details.version : '') })}) // Add Support span click-listener