aboutsummaryrefslogtreecommitdiff
path: root/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.html')
-rw-r--r--files/fr/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.html b/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.html
index 996af939f2..d276a97ab6 100644
--- a/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.html
+++ b/files/fr/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.html
@@ -17,7 +17,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/captivePortal/onConnectivityAv
<h2 id="Syntaxe">Syntaxe</h2>
-<pre class="syntaxbox brush:js notranslate">browser.captivePortal.onConnectivityAvailable.addListener(callback)
+<pre class="brush: js">browser.captivePortal.onConnectivityAvailable.addListener(callback)
browser.captivePortal.onConnectivityAvailable.removeListener(listener)
browser.captivePortal.onConnectivityAvailable.hasListener(listener)
</pre>
@@ -42,7 +42,7 @@ browser.captivePortal.onConnectivityAvailable.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>status</code></dt>
<dd><code>string</code> Le statut du service, étant celui de <code>captive</code> s'il y a un portail captif déverrouillé présent ou <code>clear</code> si aucun portail captif n'est détecté</dd>
</dl>
@@ -53,7 +53,7 @@ browser.captivePortal.onConnectivityAvailable.hasListener(listener)
<p>Gérer la capacité d'un utilisateur de changement à se connecter à l'internet :</p>
-<pre class="brush: js notranslate">function handleConnectivity(connectivityInfo) {
+<pre class="brush: js">function handleConnectivity(connectivityInfo) {
console.log("The captive portal status: " + connectivityInfo.status);
}
@@ -67,7 +67,7 @@ browser.captivePortal.onConnectivityAvailable.addListener(handleConnectivity);
<p>{{Compat("webextensions.api.captivePortal.onConnectivityAvailable")}}</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