Commit 9692a6d
Fix for errors when using
This PR addresses an error encountered while using
`OFFSCREENCANVAS_SUPPORT` for pthreads.
Unable to find canvas in `findCanvasEventTarget` when canvas is
`specialHTMLTargets`.
```
Uncaught TypeError: document.querySelector is not a function
at findCanvasEventTarget
at _wgpuInstanceCreateSurface
```
---------
Co-authored-by: chongw <[email protected]>OFFSCREENCANVAS_SUPPORT (#25260)1 parent 9642ea3 commit 9692a6d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
0 commit comments