From c50c52560c14837655361f2958e2d0acf0455a21 Mon Sep 17 00:00:00 2001 From: jbukl Date: Fri, 20 Oct 2023 17:37:40 -0400 Subject: chore: some returns bool --- ext/js/background/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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({ -- cgit v1.2.3