diff options
Diffstat (limited to 'files/fr/mozilla/add-ons/webextensions/api/captiveportal/onstatechanged/index.html')
-rw-r--r-- | files/fr/mozilla/add-ons/webextensions/api/captiveportal/onstatechanged/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onstatechanged/index.html b/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onstatechanged/index.html index f64eb36db9..09bff21405 100644 --- a/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onstatechanged/index.html +++ b/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onstatechanged/index.html @@ -17,7 +17,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/captivePortal/onStateChanged <h2 id="Syntaxe">Syntaxe</h2> -<pre class="syntaxbox brush:js notranslate">browser.captivePortal.onStateChanged.addListener(callback) +<pre class="brush: js">browser.captivePortal.onStateChanged.addListener(callback) browser.captivePortal.onStateChanged.removeListener(listener) browser.captivePortal.onStateChanged.hasListener(listener) </pre> @@ -42,7 +42,7 @@ browser.captivePortal.onStateChanged.hasListener(listener) <dd> <p>Fonction qui est appelée lorsque cet événement se produit. La fonction se voit transmettre les arguments suivants :</p> - <dl class="reference-values"> + <dl> <dt><code>details</code></dt> <dd> <p><code>string</code> L'État portail captif, étant l'un des <code>unknown</code>, <code>not_captive</code>, <code>unlocked_portal</code>, ou <code>locked_portal</code>.</p> @@ -55,7 +55,7 @@ browser.captivePortal.onStateChanged.hasListener(listener) <p>Gérer un changement de statut de portail captif :</p> -<pre class="brush: js notranslate">function handlePortalStatus(portalstatusInfo) { +<pre class="brush: js">function handlePortalStatus(portalstatusInfo) { console.log("The portal status is now: " + portalstatusInfo.details); } @@ -69,7 +69,7 @@ browser.captivePortal.onStateChanged.addListener(handlePortalStatus) <p>{{Compat("webextensions.api.captivePortal.onStateChanged")}}</p> <div class="hidden"> -<pre class="notranslate">// Copyright 2015 The Chromium Authors. All rights reserved. +<pre>// Copyright 2015 The Chromium Authors. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are |