diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-10-22 23:34:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 23:34:48 +0000 |
commit | c3148c6cf0522c5a3b3f3db6e495f401050c73f7 (patch) | |
tree | 22d68f73f998241a8e0fa922727509349007e1da /ext/js/background/backend.js | |
parent | 7039438ce5087ba4236a81b197ee8c3bfd5164d2 (diff) | |
parent | 757707539690b6aec45e9de8cd37fdfc907d8843 (diff) |
Merge pull request #276 from praschke/block-helper-rewrite
Block helper rewrite
Diffstat (limited to 'ext/js/background/backend.js')
-rw-r--r-- | ext/js/background/backend.js | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 308ae4d5..8e8e6945 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -2127,20 +2127,12 @@ class Backend { } async _openWelcomeGuidePageOnce() { - if (isObject(chrome.storage) && isObject(chrome.storage.session)) { - // Chrome - chrome.storage.session.get(['openedWelcomePage']).then((result) => { - if (!result.openedWelcomePage) { - this._openWelcomeGuidePage(); - chrome.storage.session.set({'openedWelcomePage': true}); - } - }); - } else { - // 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(); - } + chrome.storage.session.get(['openedWelcomePage']).then((result) => { + if (!result.openedWelcomePage) { + this._openWelcomeGuidePage(); + chrome.storage.session.set({'openedWelcomePage': true}); + } + }); } async _openWelcomeGuidePage() { |