aboutsummaryrefslogtreecommitdiff
path: root/files/fr/mozilla/add-ons/webextensions/api/commands/reset/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-11-15 21:45:09 +0100
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-11-15 22:10:33 +0100
commitf36cc6a7639a8f1adff02bc7a152bd7f54ceae6d (patch)
treea977e8bdefcbd40b40cd7812628da7bd95b48e10 /files/fr/mozilla/add-ons/webextensions/api/commands/reset/index.html
parent241dda7e8117b4ec0c843e3875a10e9f4aa7da7b (diff)
downloadtranslated-content-f36cc6a7639a8f1adff02bc7a152bd7f54ceae6d.tar.gz
translated-content-f36cc6a7639a8f1adff02bc7a152bd7f54ceae6d.tar.bz2
translated-content-f36cc6a7639a8f1adff02bc7a152bd7f54ceae6d.zip
move *.html to *.md
Diffstat (limited to 'files/fr/mozilla/add-ons/webextensions/api/commands/reset/index.html')
-rw-r--r--files/fr/mozilla/add-ons/webextensions/api/commands/reset/index.html57
1 files changed, 0 insertions, 57 deletions
diff --git a/files/fr/mozilla/add-ons/webextensions/api/commands/reset/index.html b/files/fr/mozilla/add-ons/webextensions/api/commands/reset/index.html
deleted file mode 100644
index a1f61322da..0000000000
--- a/files/fr/mozilla/add-ons/webextensions/api/commands/reset/index.html
+++ /dev/null
@@ -1,57 +0,0 @@
----
-title: commands.reset()
-slug: Mozilla/Add-ons/WebExtensions/API/commands/reset
-tags:
- - API
- - Add-ons
- - Extensions
- - Method
- - Reference
- - WebExtensions
- - commands
- - reset
-translation_of: Mozilla/Add-ons/WebExtensions/API/commands/reset
----
-<div>{{AddonSidebar()}}</div>
-
-<p>Réinitialise la description de la commande donnée et le raccourci clavier aux valeurs indiquées dans <a href="/fr/Add-ons/WebExtensions/manifest.json/commands"><code>commands</code> de la clé du manifest.json</a> de l'extension.</p>
-
-<p>Cela annule efficacement les modifications apportées à la commande à l'aide de la fonction {{WEbExtAPIRef("commands.update()")}}.</p>
-
-<p>C'est une fonction asynchrone qui renvoie une <code><a href="/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise">Promise</a></code>.</p>
-
-<h2 id="Syntaxe">Syntaxe</h2>
-
-<pre class="brush: js">browser.commands.reset(
- name // string
-);
-</pre>
-
-<h3 id="Paramètres">Paramètres</h3>
-
-<dl>
- <dt><code>name</code></dt>
- <dd><code>string</code>. Nom de la commande à réinitialiser, comme indiqué par la propriété <code>name</code> de l'objet {{WebExtAPIRef("commands.Command")}}.</dd>
-</dl>
-
-<h3 id="Valeur_retournée">Valeur retournée</h3>
-
-<p>Une <code><a href="/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise">Promise</a></code> qui sera remplie sans arguments lorsque le raccourci a été réinitialisé.</p>
-
-<h2 id="Compatibilité_du_navigateur">Compatibilité du navigateur</h2>
-
-<p>{{Compat("webextensions.api.commands.reset")}}</p>
-
-<h2 id="Exemples">Exemples</h2>
-
-<p>Réinitialise la commande "my-command" lorsque l'utilisateur clique sur le bouton "reset" :</p>
-
-<pre class="brush: js">const commandName = 'my-command';
-
-function resetShortcut() {
- browser.commands.reset(commandName);
-}
-
-document.querySelector('#reset').addEventListener('click', resetShortcut);</pre>
-
-<p>{{WebExtExamples}}</p>