Skip to content

Commit

Permalink
fix(client): the downloaded video now has the proper file name, rathe…
Browse files Browse the repository at this point in the history
…r than a part of the auth hash
  • Loading branch information
Will Moss committed Jul 21, 2024
1 parent 0931c95 commit 6bcf85e
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 @@ -38,7 +38,7 @@ const App = () => {

const anchor = document.createElement("a");
anchor.href = url;
anchor.download = url.split("/").pop();
anchor.download = url.split("?")[0].split("/").pop();
anchor.target = "_blank";

document.body.appendChild(anchor);
Expand Down

0 comments on commit 6bcf85e

Please sign in to comment.