We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23b74aa commit 2fa0137Copy full SHA for 2fa0137
sample/util.ts
@@ -1,14 +1,3 @@
1
-// Show an error dialog if there's any uncaught exception or promise rejection.
2
-// This gets set up on all pages that include util.ts.
3
-window.addEventListener('unhandledrejection', (ev) => {
4
- fail(`unhandled promise rejection, please report a bug!
5
- https://github.com/webgpu/webgpu-samples/issues/new\n${ev.reason}`);
6
-});
7
-window.addEventListener('error', (ev) => {
8
- fail(`uncaught exception, please report a bug!
9
- https://github.com/webgpu/webgpu-samples/issues/new\n${ev.error}`);
10
11
-
12
/** Shows an error dialog if getting an adapter wasn't successful. */
13
export function quitIfAdapterNotAvailable(
14
adapter: GPUAdapter | null
0 commit comments