diff options
Diffstat (limited to 'files/ru/web/api/usb/getdevices/index.html')
| -rw-r--r-- | files/ru/web/api/usb/getdevices/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/ru/web/api/usb/getdevices/index.html b/files/ru/web/api/usb/getdevices/index.html index 8b69fce817..a0a61f2a3a 100644 --- a/files/ru/web/api/usb/getdevices/index.html +++ b/files/ru/web/api/usb/getdevices/index.html @@ -17,7 +17,7 @@ translation_of: Web/API/USB/getDevices <h2 id="Синтаксис">Синтаксис</h2> -<pre class="syntaxbox notranslate"><em>USB</em>.getDevices()</pre> +<pre class="syntaxbox"><em>USB</em>.getDevices()</pre> <h3 id="Параметры">Параметры</h3> @@ -31,7 +31,7 @@ translation_of: Web/API/USB/getDevices <p>В следующем примере имена продуктов и серийные номера сопряжённых устройств выводятся в консоль. Для информации о сопряжённых устройствах, смотрите {{DOMxRef("USB.requestDevice","USB.requestDevice()")}}.</p> -<pre class="brush: js notranslate">navigator.usb.getDevices() +<pre class="brush: js">navigator.usb.getDevices() .then(devices => { console.log("Total devices: " + devices.length); devices.forEach(device => { |
