From 75fc0ec41d4be7c43f5822fee57d024552aed7ba Mon Sep 17 00:00:00 2001 From: Bruce Hopkins Date: Wed, 12 Jan 2022 16:59:45 +0100 Subject: docs: updated docs to match ES6 (#2242) --- docs/get-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/get-started.md b/docs/get-started.md index 8a069c6..be30c44 100644 --- a/docs/get-started.md +++ b/docs/get-started.md @@ -109,7 +109,7 @@ client.add(magnetURI, { path: '/path/to/folder' }, function (torrent) { **Note:** Seeding a torrent that can be downloaded by browser peers (i.e. with support for WebRTC) requires [webtorrent-hybrid](https://github.com/webtorrent/webtorrent-hybrid). ```js -const WebTorrent = require('webtorrent-hybrid') +import WebTorrent from 'webtorrent-hybrid' const client = new WebTorrent() client.seed('/seed-me.txt', function (torrent) { -- cgit v1.2.3