debug console

This commit is contained in:
Nastya 2024-11-19 16:32:06 +03:00
parent af79d4dae3
commit c0639639b2

@ -2,16 +2,47 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<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" />
<link
rel="icon"
type="image/svg+xml"
href="/favicon.ico"
/>
<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>
<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>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script
type="module"
src="/src/main.tsx"
></script>
</body>
</html>