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 --- .../add-ons/webextensions/api/runtime/connectnative/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/fr/mozilla/add-ons/webextensions/api/runtime/connectnative') diff --git a/files/fr/mozilla/add-ons/webextensions/api/runtime/connectnative/index.html b/files/fr/mozilla/add-ons/webextensions/api/runtime/connectnative/index.html index e52fb17054..e4a04221e2 100644 --- a/files/fr/mozilla/add-ons/webextensions/api/runtime/connectnative/index.html +++ b/files/fr/mozilla/add-ons/webextensions/api/runtime/connectnative/index.html @@ -35,7 +35,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/runtime/connectNative

Syntaxe

-
var port = browser.runtime.connectNative(
+
var port = browser.runtime.connectNative(
   application // string
 )
 
@@ -62,7 +62,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/runtime/connectNative
/*
 On startup, connect to the "ping_pong" app.
 */
-var port = browser.runtime.connectNative("ping_pong");
+var port = browser.runtime.connectNative("ping_pong");
 
 /*
 Listen for messages from the app.
@@ -74,14 +74,14 @@ port.onMessage.addListener((response) => {
 /*
 On a click on the browser action, send the app a message.
 */
-browser.browserAction.onClicked.addListener(() => {
+browser.browserAction.onClicked.addListener(() => {
   console.log("Sending:  ping");
   port.postMessage("ping");
 });

{{WebExtExamples}}

-
Remerciements : +

Note :

Cette API est basée sur l'API Chromium chrome.runtime. Cette documentation est dérivée de runtime.json dans le code de Chromium code.

-- cgit v1.2.3-54-g00ecf