GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: explain how to disable navigator · nodejs/node@6e537ae

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • globals.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/globals.md‎

Copy file name to clipboardExpand all lines: doc/api/globals.md
+10-2Lines changed: 10 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ This variable may appear to be global but is not. See [`module`][].
600600
added: v21.0.0
601601
-->
602602

603-
> Stability: 1 - Experimental
603+
> Stability: 1.1 - Active development
604604
605605
A partial implementation of the [Navigator API][].
606606

@@ -610,10 +610,18 @@ A partial implementation of the [Navigator API][].
610610
added: v21.0.0
611611
-->
612612

613-
> Stability: 1 - Experimental
613+
> Stability: 1.1 - Active development
614614
615615
A partial implementation of [`window.navigator`][].
616616

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+
617625
### `navigator.hardwareConcurrency`
618626

619627
<!-- YAML

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.