Skip to content

Commit

Permalink
Update getStreamURL() to streamURL in documentation (#2547)
Browse files Browse the repository at this point in the history
* chore(docs): update getStreamURL() to streamURL

* chore(lint): remove newline in rarity-map.js
  • Loading branch information
funniray committed May 30, 2023
1 parent f52254e commit 12d7ceb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ const player = document.querySelector('video')

function download (instance) {
client.add(magnetURI, torrent => {
const url = torrent.files[0].getStreamURL()
const url = torrent.files[0].streamURL
console.log(url)
// visit <origin>/webtorrent/ to see a list of torrents, where origin is the worker registration scope.

Expand Down
1 change: 0 additions & 1 deletion lib/rarity-map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* Mapping of torrent pieces to their respective availability in the torrent swarm. Used
* by the torrent manager for implementing the rarest piece first selection strategy.
Expand Down

0 comments on commit 12d7ceb

Please sign in to comment.