From eb5467e85d32fddc13a4ba8436cb701c7fc12733 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Thu, 14 Apr 2022 11:29:09 +0200 Subject: [PATCH] Changing docs --- docs/documentation/throttle/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/documentation/throttle/index.md b/docs/documentation/throttle/index.md index bcfa01f62..1b24ec508 100644 --- a/docs/documentation/throttle/index.md +++ b/docs/documentation/throttle/index.md @@ -113,7 +113,7 @@ throttle --stop --localhost ```javascript -const throttle = require('@sitespeed.io/throttle'); +import throttle from '@sitespeed.io/throttle' // Returns a promise throttle.start({up: 360, down: 780, rtt: 200}).then(() => ... ``` @@ -121,7 +121,7 @@ throttle.start({up: 360, down: 780, rtt: 200}).then(() => ... or ```javascript -const throttle = require('@sitespeed.io/throttle'); +import throttle from '@sitespeed.io/throttle' // Returns a promise const options = {up: 360, down: 780, rtt: 200}; await throttle.start(options);