Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Jan 22, 2024
1 parent 20d12d8 commit efd1697
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/javascript/js/custom-stream-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ StreamActions.open_filter = function () {

// https://stackoverflow.com/a/77850750/9067704
StreamActions.download = function () {
var byteCharacters = atob(this.getAttribute('content'););
var byteNumbers = new Array(byteCharacters.length);
for (var i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
const byteCharacters = atob(this.getAttribute('content'))
const byteNumbers = new Array(byteCharacters.length)
for (let i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i)
}
var byteArray = new Uint8Array(byteNumbers);
const byteArray = new Uint8Array(byteNumbers)

saveAs(
new Blob(
Expand Down

0 comments on commit efd1697

Please sign in to comment.