We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c035bd commit 23bc9e5Copy full SHA for 23bc9e5
index.html
@@ -14,7 +14,7 @@
14
<script type="module">
15
// Mildly janky code to detect WebGPU support
16
if (!window.location.toString().includes("webgpu") && navigator.gpu) {
17
- navigator.gpu.requestAdapter().then(v => { if (v != null) window.location = location.href + "/webgpu" + location.search }, _ => {})
+ navigator.gpu.requestAdapter().then(v => { if (v != null) window.location = location.href.split("?")[0] + "/webgpu" + location.search }, _ => {})
18
}
19
20
document.addEventListener('contextmenu', event => event.preventDefault());
0 commit comments