Merge pull request #7 from ilianaw/dont-copy-that-floppy

Don't copy success message
This commit is contained in:
iliana weller 2018-07-25 22:29:21 -04:00
commit 53ad7c8716
No known key found for this signature in database
GPG Key ID: DCE341C8E949BC81
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);