Skip to content

Commit 23bc9e5

Browse files
committed
fix webgpu redirect
1 parent 4c035bd commit 23bc9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<script type="module">
1515
// Mildly janky code to detect WebGPU support
1616
if (!window.location.toString().includes("webgpu") && navigator.gpu) {
17-
navigator.gpu.requestAdapter().then(v => { if (v != null) window.location = location.href + "/webgpu" + location.search }, _ => {})
17+
navigator.gpu.requestAdapter().then(v => { if (v != null) window.location = location.href.split("?")[0] + "/webgpu" + location.search }, _ => {})
1818
}
1919

2020
document.addEventListener('contextmenu', event => event.preventDefault());

0 commit comments

Comments
 (0)