Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
fixed double download on chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
tycrek committed Jul 9, 2021
1 parent ee109b4 commit 958b81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/user/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mixin resource(resourceId, resourceData)
br
- var domain = resourceData.domain || 'https://ass.rip';
.buttons(class=resourceId style='display: none;')
button.resource-buttons(class=resourceId title='Download' onclick=`window.location = '${domain}/${resourceId}/direct?download=yes';`): i.fas.fa-download
button.resource-buttons(class=resourceId title='Download' onclick=`window.location = '${domain}/${resourceId}/direct?download=yes'; return false;`): i.fas.fa-download
button.resource-buttons(class=resourceId title='Copy URL' onclick=`copyUrl('${domain}/${resourceId}');`): i.fas.fa-clone
button.resource-buttons(class=resourceId title='Delete' onclick=`deleteResource('/${resourceId}/delete/${resourceData.deleteId}');`): i.fas.fa-trash-alt
button.resource-buttons(class=resourceId title='Open direct resource in new tab' onclick=`window.open('${domain}/${resourceId}/direct', '_blank').focus();`): i.fas.fa-external-link
Expand Down

0 comments on commit 958b81f

Please sign in to comment.