Skip to content

Commit

Permalink
Fix issue coppying sound/attribution url/text
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Mar 15, 2024
1 parent 37b7455 commit 1390ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freesound/static/bw-frontend/src/pages/sound.js
Expand Up @@ -20,8 +20,8 @@ prepareAfterDownloadSoundModals();
const copyFromInputElement = (inputElement) => {
inputElement.select();
inputElement.setSelectionRange(0, 99999);
inputElement.execCommand("copy");
inputElement.getSelection().removeAllRanges();
document.execCommand("copy");
document.getSelection().removeAllRanges();
}


Expand Down

0 comments on commit 1390ead

Please sign in to comment.