この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

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

name
string. Name of the module to check.

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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaFirefox for Android
isModuleInstalled
Non-standard
Chrome No support NoEdge No support NoFirefox Full support 58Opera No support NoFirefox Android No support No

Legend

Full support  
Full support
No support  
No support
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.

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

ドキュメントのタグと貢献者

このページの貢献者: mdnwebdocs-bot, wbamberg
最終更新者: mdnwebdocs-bot,