summaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/background')
-rw-r--r--ext/js/background/backend.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index f3cb9548..db6cfada 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -2154,15 +2154,17 @@ class Backend {
async _openWelcomeGuidePageOnce() {
if (isObject(chrome.storage) && isObject(chrome.storage.session)) {
+ // Chrome
chrome.storage.session.get(['openedWelcomePage']).then((result) => {
- console.log(new Date(), 'openedWelcomePage:', result.openedWelcomePage);
if (!result.openedWelcomePage) {
this._openWelcomeGuidePage();
chrome.storage.session.set({'openedWelcomePage': true});
}
});
} else {
- // likely not mv3
+ // Firefox (storage.session is not supported yet)
+ // NOTE: This means that the welcome page will repeatedly open in Firefox
+ // until they support storage.session.
this._openWelcomeGuidePage();
}
}