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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
isModuleInstalled

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

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);