Skip to content

Commit

Permalink
Remove trailing new line from copy text (parse-community#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Nov 19, 2020
1 parent 52e01b1 commit 7f1a23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
const text = copyText.textContent || copyText.innerText;

const input = document.createElement('textarea');
input.innerHTML = text;
input.innerHTML = text.replace(/\n$/, '');
document.body.appendChild(input);
input.select();
input.setSelectionRange(0, 99999);
Expand Down

0 comments on commit 7f1a23a

Please sign in to comment.