diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-04 18:20:05 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-04 18:23:05 -0500 |
commit | dcddbee07e20163ae167dd67fe58f0776f9acb64 (patch) | |
tree | 4a55c4bd42859f7bebae9d9cb31c6ae5fa0e3f9a /ext/js/background | |
parent | 4b80a486181b902f3b1e089b584818ce725a91be (diff) |
Update how ts comments are handled
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/offscreen-proxy.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/background/offscreen-proxy.js b/ext/js/background/offscreen-proxy.js index 7b504855..63f619fa 100644 --- a/ext/js/background/offscreen-proxy.js +++ b/ext/js/background/offscreen-proxy.js @@ -54,16 +54,16 @@ export class OffscreenProxy { */ async _hasOffscreenDocument() { const offscreenUrl = chrome.runtime.getURL('offscreen.html'); - // @ts-ignore - API not defined yet + // @ts-expect-error - API not defined yet if (!chrome.runtime.getContexts) { // chrome version below 116 // Clients: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/clients - // @ts-ignore - Types not set up for service workers yet + // @ts-expect-error - Types not set up for service workers yet const matchedClients = await clients.matchAll(); - // @ts-ignore - Types not set up for service workers yet + // @ts-expect-error - Types not set up for service workers yet return await matchedClients.some((client) => client.url === offscreenUrl); } - // @ts-ignore - API not defined yet + // @ts-expect-error - API not defined yet const contexts = await chrome.runtime.getContexts({ contextTypes: ['OFFSCREEN_DOCUMENT'], documentUrls: [offscreenUrl] |