conditionally allow debug if '?debug' in url
This commit is contained in:
parent
bceb4dec7a
commit
a0a9b02bcf
2 changed files with 3 additions and 3 deletions
2
app/.env
2
app/.env
|
@ -1 +1 @@
|
||||||
VUE_APP_DEMO=true
|
|
||||||
|
|
|
@ -242,8 +242,8 @@ export default defineComponent({
|
||||||
|
|
||||||
// Debug Stats
|
// Debug Stats
|
||||||
let stats: Stats | undefined;
|
let stats: Stats | undefined;
|
||||||
if (process.env.VUE_APP_DEMO) {
|
if (window.location.search.includes("debug")) {
|
||||||
console.info("[SVG] DEMO mode active, turning on stats & dev panel.");
|
console.info("[SVG] DEBUG mode active, turning on stats & dev panel.");
|
||||||
stats = new Stats();
|
stats = new Stats();
|
||||||
document.body.appendChild(stats.dom);
|
document.body.appendChild(stats.dom);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue