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(
名称
// string
)
名称
string
. Name of the module to check.
A
Promise
that will be fulfilled with
true
if the module is installed,
false
否则。
If the module an error occurs, the promise will be rejected with an error message.
BCD tables only load in the browser
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);
最后修改: , 由 MDN 贡献者