aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/background')
-rw-r--r--ext/js/background/backend.js2
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({