Skip to content

Commit

Permalink
Removed no-longer used Infinity action handler from Chrome msg listen…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Nov 30, 2024
1 parent 7fcb74c commit 8912c18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
chrome.runtime.onMessage.addListener(req => {
if (req.action == 'notify') notify(req.msg, req.pos)
else if (req.action == 'alert') siteAlert(req.title, req.msg, req.btns)
else if (req.action.startsWith('infinity')) infinity[/\.(\w+)/.exec(req.action)[1]](req.options)
else if (req.action == 'syncConfigToUI') {
if (req.sender == 'service-worker.js') // disable Infinity mode 1st to not transfer between tabs
settings.save('infinityMode', false)
Expand Down
3 changes: 1 addition & 2 deletions firefox/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
else if (req.action == 'prompt') {
const userInput = window.prompt(req.msg || 'Please enter your input:', req.defaultVal || '')
sendResp({ input: userInput })
} else if (req.action.startsWith('infinity')) infinity[/\.(\w+)/.exec(req.action)[1]](req.options)
else if (req.action == 'syncConfigToUI') {
} else if (req.action == 'syncConfigToUI') {
if (req.sender == 'background.js') // disable Infinity mode 1st to not transfer between tabs
settings.save('infinityMode', false)
syncConfigToUI(req.options)
Expand Down

0 comments on commit 8912c18

Please sign in to comment.