diff options
author | jbukl <noreply@github.com> | 2023-10-20 17:37:40 -0400 |
---|---|---|
committer | jbukl <noreply@github.com> | 2023-10-20 17:37:40 -0400 |
commit | c50c52560c14837655361f2958e2d0acf0455a21 (patch) | |
tree | 405259c0985351cd477d0566e94ba6640c6ac83d | |
parent | 4c3f6f1a1714b575b18482080dbf4a235d5a1ad3 (diff) |
chore: some returns bool
-rw-r--r-- | ext/js/background/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index abdf8271..f5cbb349 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -2309,7 +2309,7 @@ class Backend { const offscreenUrl = chrome.runtime.getURL('offscreen.html'); if (!chrome.runtime.getContexts) { // chrome version <116 const matchedClients = await clients.matchAll(); - return !!(await matchedClients.some((client) => client.url === offscreenUrl)); + return await matchedClients.some((client) => client.url === offscreenUrl); } const contexts = await chrome.runtime.getContexts({ |