extension.isAllowedFileSchemeAccess()
Gibt true
zurück, wenn die Erweiterung auf das "file://" Schema zugreifen kann, andernfalls false
.
Dies ist eine asynchrone Funktion, die ein Promise
zurückgibt.
Syntax
js
let isAllowed = browser.extension.isAllowedFileSchemeAccess()
Parameter
Keine.
Rückgabewert
Ein Promise
, das mit einem boolean-Wert erfüllt wird: true
, wenn der Erweiterung der Zugriff auf "file://" URLs erlaubt ist, andernfalls false
.
Firefox wird immer false
zurückgeben.
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
isAllowedFileSchemeAccess |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
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.
Beispiele
js
function logIsAllowed(answer) {
console.log(`Is allowed: ${answer}`);
}
let isAllowed = browser.extension.isAllowedFileSchemeAccess();
isAllowed.then(logIsAllowed);
Hinweis:
Diese API basiert auf Chromium's chrome.extension
API. Diese Dokumentation stammt aus extension.json
im Chromium-Code.