aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/welcome-main.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/pages/welcome-main.js
parentf88bded2f05b440a8aa7beb980d8c5d76b150011 (diff)
warn about custom templates in the welcome page
Diffstat (limited to 'ext/js/pages/welcome-main.js')
-rw-r--r--ext/js/pages/welcome-main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/js/pages/welcome-main.js b/ext/js/pages/welcome-main.js
index 521ce2c2..8039dae5 100644
--- a/ext/js/pages/welcome-main.js
+++ b/ext/js/pages/welcome-main.js
@@ -58,6 +58,13 @@ async function setupGenericSettingsController(genericSettingController) {
setupEnvironmentInfo();
+ chrome.storage.session.get({'needsCustomTemplatesWarning': false}).then((result) => {
+ if (result.needsCustomTemplatesWarning) {
+ document.documentElement.dataset.warnCustomTemplates = 'true';
+ chrome.storage.session.remove(['needsCustomTemplatesWarning']);
+ }
+ });
+
const preparePromises = [];
const modalController = new ModalController();