From 3aab83067dccb82b791e41b85e68a1a2e37ddf46 Mon Sep 17 00:00:00 2001
From: Jonas Zohren <jonas.zohren@adesso.de>
Date: Tue, 6 Apr 2021 09:25:47 +0200
Subject: [PATCH] Only show debug tools on localhost

---
 src/App.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/App.svelte b/src/App.svelte
index 461dc66..a2d5842 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -15,7 +15,9 @@
     <br />
     <DialogSetComponent bind:currentDialog {...dialogSet} />
     <br />
-    <Debugger {dialogSet} bind:currentDialog />
+    {#if window.location.hostname.includes("localhost")}
+      <Debugger {dialogSet} bind:currentDialog />
+    {/if}
   {:catch _error}
     <h3>Oh no :(</h3>
     <p>
-- 
GitLab