Checks whether the named PKCS #11 module is currently installed in Firefox.
This is an asynchronous function that returns a Promise
.
var checking = browser.pkcs11.isModuleInstalled( name // string )
name
string
. Name of the module to check.A Promise
that will be fulfilled with true
if the module is installed, false
otherwise.
If the module an error occurs, the promise will be rejected with an error message.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
isModuleInstalled |
No |
No |
58 |
? |
No |
No |
? |
? |
No |
? |
? |
? |
Checks whether the module named "pkcs11_module" is installed:
function logIsInstalled(isInstalled) { console.log(`Module is installed: ${isInstalled}`); } browser.pkcs11.isModuleInstalled("pkcs11_module").then(logIsInstalled);
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/pkcs11/isModuleInstalled