From a0a9b02bcfd7243368eec6590f0e4588ee7f06aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 17 Jan 2021 14:59:21 +0100 Subject: [PATCH] conditionally allow debug if '?debug' in url --- app/.env | 2 +- app/src/components/SVGContent.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/.env b/app/.env index 2eeae62..8b13789 100644 --- a/app/.env +++ b/app/.env @@ -1 +1 @@ -VUE_APP_DEMO=true + diff --git a/app/src/components/SVGContent.vue b/app/src/components/SVGContent.vue index 1dcb006..8026d83 100644 --- a/app/src/components/SVGContent.vue +++ b/app/src/components/SVGContent.vue @@ -242,8 +242,8 @@ export default defineComponent({ // Debug Stats let stats: Stats | undefined; - if (process.env.VUE_APP_DEMO) { - console.info("[SVG] DEMO mode active, turning on stats & dev panel."); + if (window.location.search.includes("debug")) { + console.info("[SVG] DEBUG mode active, turning on stats & dev panel."); stats = new Stats(); document.body.appendChild(stats.dom); } else {