diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2024-01-13 11:58:48 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 04:58:48 +0000 |
commit | 36c40ff671ae1f8a05aac77c8694e9bccdda85fb (patch) | |
tree | 4bebcaf1659dfb44e25ee60785dbc512aedf3629 /ext/js/background | |
parent | 60276d41ffd90044acc2f95e70b9b0c9a770417a (diff) |
type updates (#500)
* type updates
* remove comments
* fix comment
* remove types
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/backend.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 481567b5..3f3c6063 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -2629,14 +2629,14 @@ export class Backend { } /** + * Only request this permission for Firefox versions >= 77. + * https://bugzilla.mozilla.org/show_bug.cgi?id=1630413 * @returns {Promise<void>} */ async _requestPersistentStorage() { try { if (await navigator.storage.persisted()) { return; } - // Only request this permission for Firefox versions >= 77. - // https://bugzilla.mozilla.org/show_bug.cgi?id=1630413 const {vendor, version} = await browser.runtime.getBrowserInfo(); if (vendor !== 'Mozilla') { return; } |