From 936da1c9abdaffe98fe37ca486a415cc1253d48c Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 10 Jul 2024 23:52:44 +0600 Subject: [PATCH] web/debug: show page content only when debug mode is enabled --- .../settings/advanced/debug/+page.svelte | 56 +++++++++++-------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/web/src/routes/settings/advanced/debug/+page.svelte b/web/src/routes/settings/advanced/debug/+page.svelte index 925d5fed..0192735c 100644 --- a/web/src/routes/settings/advanced/debug/+page.svelte +++ b/web/src/routes/settings/advanced/debug/+page.svelte @@ -1,39 +1,51 @@ -
- device: -
- is.iPad: {device.is.iPad} - is.iPhone: {device.is.iPhone} - is.iOS: {device.is.iOS} - is.android: {device.is.android} - is.mobile: {device.is.mobile} - preferredLocale: {device.preferredLocale} -
+{#if $settings.advanced.debug} +
+ device: +
+ is.iPad: {device.is.iPad} + is.iPhone: {device.is.iPhone} + is.iOS: {device.is.iOS} + is.android: {device.is.android} + is.mobile: {device.is.mobile} + preferredLocale: {device.preferredLocale} +
- app: -
- is.installed: {app.is.installed} -
+ app: +
+ is.installed: {app.is.installed} +
- version: -
- version: {version.version} - commit: {version.commit.slice(0, 7)} - branch: {version.branch} - remote: {version.remote} + version: +
+ version: {version.version} + commit: {version.commit.slice(0, 7)} + branch: {version.branch} + remote: {version.remote} +
-
+{/if}