You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-worker.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,16 @@ foreach(var pageWorker in page.Workers)
58
58
59
59
Emitted when this dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is terminated.
60
60
61
+
## event: Worker.console
62
+
* since: v1.56
63
+
- argument: <[ConsoleMessage]>
64
+
65
+
:::note
66
+
Console events from Web Workers are dispatched on the page object. Note that console events are only supported on Chromium-based browsers and within Service Workers.
67
+
:::
68
+
69
+
Emitted when JavaScript within the worker calls one of console API methods, e.g. `console.log` or `console.dir`.
0 commit comments