extension.isAllowedIncognitoAccess()
Überprüfen Sie, ob die Erweiterung Zugriff auf Registerkarten im "Privaten Browsing"-Modus hat.
Dies ist eine asynchrone Funktion, die ein Promise
zurückgibt.
Syntax
js
let isAllowed = browser.extension.isAllowedIncognitoAccess()
Parameter
Keine.
Rückgabewert
Ein Promise
, das mit einem boolean erfüllt wird: true
, wenn die Erweiterung Zugriff auf private Registerkarten hat, andernfalls false
.
Beispiele
js
function logIsAllowed(answer) {
console.log(`Is allowed: ${answer}`);
}
let isAllowed = browser.extension.isAllowedIncognitoAccess();
isAllowed.then(logIsAllowed);
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
isAllowedIncognitoAccess |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- 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 stammt aus extension.json
im Chromium-Code.