Skip to content

Commit c7471d1

Browse files
committed
Add url option debug to open the debug console right away
1 parent 1977c2c commit c7471d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/WebGLTemplates/Develop/debug-console.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ if (getCookie("addTimestamp") === "false") {
2121
addTimestamp = false;
2222
}
2323

24-
initializeToggleButton(false);
24+
const urlParams = new URLSearchParams(window.location.search);
25+
const debugParam = urlParams.get('debug');
26+
const debug = debugParam === 'true';
27+
28+
initializeToggleButton(debug);
2529
initializeDebugConsole();
2630

2731

0 commit comments

Comments
 (0)