From 73663e3443e23339c1e27544a769705cd086e204 Mon Sep 17 00:00:00 2001 From: Adam Spofford Date: Fri, 20 Dec 2024 11:08:52 -0800 Subject: [PATCH] Add message for safari users --- .../project_templates/react/src/__frontend_name__/index.html | 4 ++++ .../react/src/__frontend_name__/src/index.scss | 4 ++++ .../svelte/src/__frontend_name__/src/app.html | 4 ++++ .../svelte/src/__frontend_name__/src/index.scss | 4 ++++ .../vanilla_js/src/__frontend_name__/index.html | 4 ++++ .../vanilla_js/src/__frontend_name__/src/index.scss | 4 ++++ .../project_templates/vue/src/__frontend_name__/index.html | 4 ++++ .../vue/src/__frontend_name__/src/index.scss | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/src/dfx/assets/project_templates/react/src/__frontend_name__/index.html b/src/dfx/assets/project_templates/react/src/__frontend_name__/index.html index a8f14f76b8..25fca3f10f 100644 --- a/src/dfx/assets/project_templates/react/src/__frontend_name__/index.html +++ b/src/dfx/assets/project_templates/react/src/__frontend_name__/index.html @@ -10,6 +10,10 @@ +
+ ⚠️ If this page appears broken, try reloading. If the problem persists, your browser may be unsupported; try using + Chrome or Firefox. +
diff --git a/src/dfx/assets/project_templates/react/src/__frontend_name__/src/index.scss b/src/dfx/assets/project_templates/react/src/__frontend_name__/src/index.scss index c1c320834c..4e4575ea29 100644 --- a/src/dfx/assets/project_templates/react/src/__frontend_name__/src/index.scss +++ b/src/dfx/assets/project_templates/react/src/__frontend_name__/src/index.scss @@ -35,3 +35,7 @@ button[type="submit"] { #greeting:empty { display: none; } + +.browser-warning { + display: none; +} \ No newline at end of file diff --git a/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/app.html b/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/app.html index dfae06cc73..fed4ef3042 100644 --- a/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/app.html +++ b/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/app.html @@ -10,6 +10,10 @@ +
+ ⚠️ If this page appears broken, try reloading. If the problem persists, your browser may be unsupported; try + using Chrome or Firefox. +
%sveltekit.body%
diff --git a/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/index.scss b/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/index.scss index c1c320834c..4e4575ea29 100644 --- a/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/index.scss +++ b/src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/index.scss @@ -35,3 +35,7 @@ button[type="submit"] { #greeting:empty { display: none; } + +.browser-warning { + display: none; +} \ No newline at end of file diff --git a/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/index.html b/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/index.html index 6c1db68a54..d15054a563 100644 --- a/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/index.html +++ b/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/index.html @@ -9,6 +9,10 @@ +
+ ⚠️ If this page appears broken, try reloading. If the problem persists, your browser may be unsupported; try using + Chrome or Firefox. +
diff --git a/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/src/index.scss b/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/src/index.scss index c1c320834c..4e4575ea29 100644 --- a/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/src/index.scss +++ b/src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/src/index.scss @@ -35,3 +35,7 @@ button[type="submit"] { #greeting:empty { display: none; } + +.browser-warning { + display: none; +} \ No newline at end of file diff --git a/src/dfx/assets/project_templates/vue/src/__frontend_name__/index.html b/src/dfx/assets/project_templates/vue/src/__frontend_name__/index.html index 6e80f94528..35a86d708a 100644 --- a/src/dfx/assets/project_templates/vue/src/__frontend_name__/index.html +++ b/src/dfx/assets/project_templates/vue/src/__frontend_name__/index.html @@ -14,6 +14,10 @@ We're sorry but this application doesn't work properly without JavaScript enabled. Please enable it to continue. +
+ ⚠️ If this page appears broken, try reloading. If the problem persists, your browser may be unsupported; try using + Chrome or Firefox. +
diff --git a/src/dfx/assets/project_templates/vue/src/__frontend_name__/src/index.scss b/src/dfx/assets/project_templates/vue/src/__frontend_name__/src/index.scss index c1c320834c..4e4575ea29 100644 --- a/src/dfx/assets/project_templates/vue/src/__frontend_name__/src/index.scss +++ b/src/dfx/assets/project_templates/vue/src/__frontend_name__/src/index.scss @@ -35,3 +35,7 @@ button[type="submit"] { #greeting:empty { display: none; } + +.browser-warning { + display: none; +} \ No newline at end of file