From 34d315396ca29d7ef51ecc27eeeeeb275e9b0ba9 Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Mon, 15 Nov 2021 19:39:07 +0100 Subject: Prepare Mozilla section for Markdown conversion (#2980) * Remove summary * Remove hidden except for copyright notice * Remove spans * Remove font * Remove notranslate * Remove extra id, deleting an untranslated page doing so * Fix links, absolute links, rm internal, titles * Remove external classes * fix headings with name attr * fix some styles and classes * remove useless class reference-values * rm styles in links * Fix code blocks in pre * Remove ltr classes * remove fullwidth-table * Fix various conversion errors and some one offs * Remove nested code/pre/code * Fix notes * Fix warnings * fix dls * fix nested issues in dls * fix images --- .../api/pkcs11/installmodule/index.html | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'files/fr/mozilla/add-ons/webextensions/api/pkcs11/installmodule/index.html') diff --git a/files/fr/mozilla/add-ons/webextensions/api/pkcs11/installmodule/index.html b/files/fr/mozilla/add-ons/webextensions/api/pkcs11/installmodule/index.html index 3163c01b65..a70fee644d 100644 --- a/files/fr/mozilla/add-ons/webextensions/api/pkcs11/installmodule/index.html +++ b/files/fr/mozilla/add-ons/webextensions/api/pkcs11/installmodule/index.html @@ -20,7 +20,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/pkcs11/installModule

Syntaxe

-
var installing = browser.pkcs11.installModule(
+
var installing = browser.pkcs11.installModule(
   name,              // string
   flags              // integer
 )
@@ -49,23 +49,23 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/pkcs11/installModule
 
 

Installe un module, puis dresse la liste de ses emplacements et liste les jetons qu'ils contiennent :

-
function onInstalled() {
-  return browser.pkcs11.getModuleSlots("my_module");
-}
-
-function onGotSlots(slots) {
-  for (slot of slots) {
-    console.log(`Slot: ${slot.name}`);
-    if (slot.token) {
-      console.log(`Contains token: ${slot.token.name}`);
-    } else {
-      console.log('Is empty');
-    }
-  }
-}
-
-browser.pkcs11.installModule("my_module")
-.then(onInstalled)
-.then(onGotSlots);
+
function onInstalled() {
+  return browser.pkcs11.getModuleSlots("my_module");
+}
+
+function onGotSlots(slots) {
+  for (slot of slots) {
+    console.log(`Slot: ${slot.name}`);
+    if (slot.token) {
+      console.log(`Contains token: ${slot.token.name}`);
+    } else {
+      console.log('Is empty');
+    }
+  }
+}
+
+browser.pkcs11.installModule("my_module")
+.then(onInstalled)
+.then(onGotSlots);

{{WebExtExamples}}

-- cgit v1.2.3-54-g00ecf