diff --git a/static/script.js b/static/script.js index 65bffdd..d25e856 100644 --- a/static/script.js +++ b/static/script.js @@ -32,7 +32,9 @@ function getAnnotation(e) { annotationDiv.innerHTML = parsedReponse.html annotationDiv.id = uri annotationDiv.className = "annotation" - e.target.parentElement.insertAdjacentElement('afterend', annotationDiv) + if (!document.getElementById(uri)) { + e.target.parentElement.insertAdjacentElement('afterend', annotationDiv) + } } } }