From 36c40ff671ae1f8a05aac77c8694e9bccdda85fb Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sat, 13 Jan 2024 11:58:48 +0700 Subject: type updates (#500) * type updates * remove comments * fix comment * remove types --- ext/js/background/backend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/background') 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} */ 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; } -- cgit v1.2.3