Skip to content

Commit

Permalink
fix(client): fixed the download feature to download the proper video,…
Browse files Browse the repository at this point in the history
… not always the first one
  • Loading branch information
Will Moss committed Jul 21, 2024
1 parent 6bcf85e commit 13a0b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const App = () => {

// Video control - Download the current video
const download = () => {
const url = videos[0].url;
const url = videos[visibleIndexes.length === 2 ? visibleIndexes[0] : visibleIndexes[1]].url;

const anchor = document.createElement("a");
anchor.href = url;
Expand Down

0 comments on commit 13a0b30

Please sign in to comment.