Merge pull request #7 from ilianaw/dont-copy-that-floppy
Don't copy success message
This commit is contained in:
commit
53ad7c8716
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue