Skip to content

Commit

Permalink
Loosened comparison operators for smaller filesizes ↞ [auto-sync from…
Browse files Browse the repository at this point in the history
… `KudoAI/chatgpt.js-chrome-starter`]
  • Loading branch information
kudo-sync-bot committed Nov 17, 2024
1 parent 53afc5b commit 6930d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions starters/chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion starters/chrome/extension/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6930d7b

Please sign in to comment.