debug console
This commit is contained in:
parent
af79d4dae3
commit
c0639639b2
45
index.html
45
index.html
@ -2,16 +2,47 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
<link
|
||||||
<link rel="apple-touch-icon" href="/logo192.png" />
|
rel="icon"
|
||||||
<link rel="manifest" href="/manifest.json" />
|
type="image/svg+xml"
|
||||||
<meta name="theme-color" content="#000000" />
|
href="/favicon.ico"
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
/>
|
||||||
<meta http-equiv="Pragma" content="no-cache" />
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
href="/logo192.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="manifest"
|
||||||
|
href="/manifest.json"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="theme-color"
|
||||||
|
content="#000000"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="width=device-width, initial-scale=1.0"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
http-equiv="Pragma"
|
||||||
|
content="no-cache"
|
||||||
|
/>
|
||||||
<title>Quiz</title>
|
<title>Quiz</title>
|
||||||
|
<script>
|
||||||
|
let params = new URLSearchParams(document.location.search);
|
||||||
|
if (params.get("debug")) {
|
||||||
|
let scriptTag = document.createElement("script");
|
||||||
|
scriptTag.setAttribute("src", "https://markknol.github.io/console-log-viewer/console-log-viewer.js");
|
||||||
|
scriptTag.setAttribute("async", "");
|
||||||
|
document.getElementsByTagName("head")[0].append(scriptTag);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script type="module" src="/src/main.tsx"></script>
|
<script
|
||||||
|
type="module"
|
||||||
|
src="/src/main.tsx"
|
||||||
|
></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user