summaryrefslogtreecommitdiff
path: root/ext/js/background/backend.js
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-22 17:23:04 +0100
committerpraschke <stel@comfy.monster>2023-10-22 19:25:58 +0100
commit757707539690b6aec45e9de8cd37fdfc907d8843 (patch)
treedc91bc7516e4e9e9c4cc24cc153f52457d14e8a0 /ext/js/background/backend.js
parentf88bded2f05b440a8aa7beb980d8c5d76b150011 (diff)
warn about custom templates in the welcome page
Diffstat (limited to 'ext/js/background/backend.js')
-rw-r--r--ext/js/background/backend.js20
1 files changed, 6 insertions, 14 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index 565f4abf..755010a3 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -2099,20 +2099,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() {