We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1bafc9 commit 2b84b82Copy full SHA for 2b84b82
sample/util.ts
@@ -57,9 +57,9 @@ export function quitIfWebGPUNotAvailable(
57
device.lost.then((reason) => {
58
fail(`Device lost ("${reason.reason}"):\n${reason.message}`);
59
});
60
- device.onuncapturederror = (ev) => {
+ device.addEventListener('uncapturederror', (ev) => {
61
fail(`Uncaptured error:\n${ev.error.message}`);
62
- };
+ });
63
}
64
65
/** Fail by showing a console error, and dialog box if possible. */
0 commit comments