Skip to content

Commit 80365d7

Browse files
matthewmateorogerwang
authored andcommitted
Update Web Worker documentation
Looks like Node was enabled in Workers a few years ago, so this should be updated
1 parent c1f5bb6 commit 80365d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/For Users/Advanced/JavaScript Contexts in NW.js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In NW.js, Node.js modules can be loaded in the context running in background pag
2626
Besides the contexts created by browsers, NW.js introduced additional Node context for running Node modules in the background page by default. So NW.js has two types of JavaScript contexts: **Browser Context** and **Node Context**.
2727

2828
!!! note "Web Worker"
29-
Actually Web Workers are running in a separate JavaScript context which is neither browser context nor node context. But you can't access Web or Node.js or NW.js APIs in Web Worker's context.
29+
[You can access Node.js APIs](https://nwjs.io/blog/v0.18.4/) in a Web Worker by setting adding `"chromium-args": "--enable-node-worker"` to your Manifest
3030

3131
### Browser Context
3232

0 commit comments

Comments
 (0)