diff options
author | Michael C <[email protected]> | 2022-10-21 02:37:48 -0400 |
---|---|---|
committer | Michael C <[email protected]> | 2022-10-21 02:37:48 -0400 |
commit | 27bb6045bcbe0ef831d42afdd4d1675de43e5918 (patch) | |
tree | 30f0907945f0e3aca140e75bcc5ed7153f04bd93 | |
parent | 0610eea53de767c1e719846aa92c3c0898f66717 (diff) | |
download | SponsorBlock-27bb6045bcbe0ef831d42afdd4d1675de43e5918.tar.gz SponsorBlock-27bb6045bcbe0ef831d42afdd4d1675de43e5918.zip |
make tab open listeners non-async
-rw-r--r-- | src/background.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/background.ts b/src/background.ts index 126b660e..975f4482 100644 --- a/src/background.ts +++ b/src/background.ts @@ -59,16 +59,16 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) { switch(request.message) { case "openConfig": chrome.tabs.create({url: chrome.runtime.getURL('options/options.html' + (request.hash ? '#' + request.hash : ''))}); - return true; + return false; case "openHelp": chrome.tabs.create({url: chrome.runtime.getURL('help/index.html')}); - return true; + return false; case "openUpsell": chrome.tabs.create({url: chrome.runtime.getURL('upsell/index.html')}); - return true; + return false; case "openPage": chrome.tabs.create({url: chrome.runtime.getURL(request.url)}); - return true; + return false; case "sendRequest": sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => { callback({ |