Skip to content

Commit 206ac54

Browse files
committed
force debug to false when not in dev
1 parent db34aae commit 206ac54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/internal/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// If debug is initially set to false it will not be toggleable.
2-
let debug = true;
2+
let debug = true && location.hostname === "localhost";
33
export const isDebug = () => debug;
44

55
const debugListeners: ((debug: boolean) => void)[] = [];

0 commit comments

Comments
 (0)