From aa8e5dd0cad1b82bf4a00c6bf6fcade887036beb Mon Sep 17 00:00:00 2001 From: iliana weller Date: Sun, 24 Jun 2018 21:03:04 -0700 Subject: [PATCH] Don't copy success message --- static/copy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/copy.js b/static/copy.js index 50b7656..dc76f7e 100644 --- a/static/copy.js +++ b/static/copy.js @@ -4,6 +4,10 @@ const range = document.createRange(); const dd = this.querySelector('dd'); + if (dd.classList.contains('success')) { + return; + } + range.selectNodeContents(dd.childNodes[0]); selection.removeAllRanges(); selection.addRange(range);