Skip to content

Commit

Permalink
Fix invalid RAP filename in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
yne committed Jul 23, 2023
1 parent 7b11dbb commit 6473d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
var hex = row[4];
if (!hex) return "";
if (hex == 0) return '<span>press Circle in ReactPSN</span>';
return '<a download="' + row[1] + '-' + row[0] + '_00-' + hex.substr(16) + '.rap" href="' + hex.substr(16) + '.rap">RAP</a>';
return '<a download="' + row[1] + '-' + row[0] + '_00-' + hex + '.rap" href="' + hex + '.rap">RAP</a>';
//return '<a download="' + row[1] + '-' + row[0] + '_00-' + hex.substr(16) + '.rap" href="data:application/octet-stream,' + hex.replace(/../g, function(a){ return '%'+a;}) + '">RAP</a>';
}
function fetchDB() {
Expand Down

0 comments on commit 6473d45

Please sign in to comment.