pkcs11.isModuleInstalled()
Checks whether the named PKCS #11 module is currently installed in Firefox.
This is an asynchronous function that returns a Promise
.
Syntax
var checking = browser.pkcs11.isModuleInstalled(
name // string
)
Parameters
Return value
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.
Browser compatibility
Report problems with this compatibility data on GitHubwebextensions-desktop | webextensions-mobile | |||||
---|---|---|---|---|---|---|
isModuleInstalled | ChromeNo supportNo | EdgeNo supportNo | FirefoxFull support58 | OperaNo supportNo | SafariNo supportNo | Firefox for AndroidNo supportNo |
Legend
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
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.
Examples
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);