extension.inIncognitoContext
Boolescher Wert, true
für Inhalts-Skripte, die in privaten Browsing-Tabs ausgeführt werden, und für Erweiterungsseiten, die in einem privaten Browsing-Prozess laufen.
Syntax
js
let isPrivate = browser.extension.inIncognitoContext; // true or false
Wert
Ein boolescher Wert, der angibt, ob das aktuelle Skript in einem privaten Tab oder Prozess ausgeführt wird.
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
inIncognitoContext |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Uses a non-standard name.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Hinweis:
Diese API basiert auf der chrome.extension
API von Chromium. Diese Dokumentation leitet sich von extension.json
im Chromium-Code ab.