minor fix
[wolnelektury.git] / src / wolnelektury / static / js / book_text / references.js
index 9fd6928..1a284a0 100644 (file)
     });
 
     $('a.anchor').on('click', function(e) {
+        // Workaround for bad TOC markers.
+        if (($this).closest('#toc').length) return;
         e.preventDefault();
 
         let sel = window.getSelection();