pkcs11.isModuleInstalled()
Überprüft, ob das benannte PKCS #11-Modul derzeit in Firefox installiert ist.
Dies ist eine asynchrone Funktion, die ein Promise
zurückgibt.
Syntax
js
let checking = browser.pkcs11.isModuleInstalled(
name // string
)
Parameter
name
-
string
. Name des Moduls, das überprüft werden soll.
Rückgabewert
Ein Promise
, das mit true
erfüllt wird, wenn das Modul installiert ist, andernfalls mit false
.
Wenn ein Fehler auftritt, wird das Promise mit einer Fehlermeldung abgelehnt.
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
isModuleInstalled |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No 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
Überprüft, ob das Modul mit dem Namen "pkcs11_module" installiert ist:
js
function logIsInstalled(isInstalled) {
console.log(`Module is installed: ${isInstalled}`);
}
browser.pkcs11.isModuleInstalled("pkcs11_module").then(logIsInstalled);