@@ -600,7 +600,8 @@ This variable may appear to be global but is not. See [`module`][].
600
600
added: v21.0.0
601
601
-->
602
602
603
- > Stability: 1.1 - Active development
603
+ > Stability: 1.1 - Active development. Disable this API with the
604
+ > [ ` --no-experimental-global-navigator ` ] [ ] CLI flag.
604
605
605
606
A partial implementation of the [ Navigator API] [ ] .
606
607
@@ -610,18 +611,11 @@ A partial implementation of the [Navigator API][].
610
611
added: v21.0.0
611
612
-->
612
613
613
- > Stability: 1.1 - Active development
614
+ > Stability: 1.1 - Active development. Disable this API with the
615
+ > [ ` --no-experimental-global-navigator ` ] [ ] CLI flag.
614
616
615
617
A partial implementation of [ ` window.navigator ` ] [ ] .
616
618
617
- If your app or a dependency uses a check for ` navigator ` to determine whether it
618
- is running in a browser, the following can be used to delete the ` navigator `
619
- global before app code runs:
620
-
621
- ``` bash
622
- node --import ' data:text/javascript,delete globalThis.navigator' app.js
623
- ```
624
-
625
619
### ` navigator.hardwareConcurrency `
626
620
627
621
<!-- YAML
@@ -1145,6 +1139,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
1145
1139
[ Web Crypto API ] : webcrypto.md
1146
1140
[ `--experimental-websocket` ] : cli.md#--experimental-websocket
1147
1141
[ `--no-experimental-global-customevent` ] : cli.md#--no-experimental-global-customevent
1142
+ [ `--no-experimental-global-navigator` ] : cli.md#--no-experimental-global-navigator
1148
1143
[ `--no-experimental-global-webcrypto` ] : cli.md#--no-experimental-global-webcrypto
1149
1144
[ `AbortController` ] : https://developer.mozilla.org/en-US/docs/Web/API/AbortController
1150
1145
[ `ByteLengthQueuingStrategy` ] : webstreams.md#class-bytelengthqueuingstrategy
0 commit comments