Don't copy success message

This commit is contained in:
iliana weller 2018-06-24 21:03:04 -07:00 committed by GitHub
parent 165c54fec2
commit aa8e5dd0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@
const range = document.createRange(); const range = document.createRange();
const dd = this.querySelector('dd'); const dd = this.querySelector('dd');
if (dd.classList.contains('success')) {
return;
}
range.selectNodeContents(dd.childNodes[0]); range.selectNodeContents(dd.childNodes[0]);
selection.removeAllRanges(); selection.removeAllRanges();
selection.addRange(range); selection.addRange(range);