aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
authorAustin Siew <17107540+Aquafina-water-bottle@users.noreply.github.com>2023-03-30 00:55:20 -0600
committerDarius Jahandarie <djahandarie@gmail.com>2023-04-02 22:12:01 +0900
commit033d38d3a0dfabc2565769ff12e30145f5450eb5 (patch)
treeb5c4650d8b3bf0dd67a53d9f9d4349d92a73e09f /ext/js/background
parent66521d3d16af4e15ba921aaf5d57e6ac331ea917 (diff)
refactor: added Firefox/Chrome comment on welcome page, removed console.log
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();
}
}