diff static/app.js @ 1:c7f4f2ac38f2 draft default tip

" master branch Updating"
author lain
date Tue, 09 Aug 2022 15:19:45 +0000
parents 426b0f85a311
children
line wrap: on
line diff
--- a/static/app.js	Tue Jul 19 07:36:57 2022 +0000
+++ b/static/app.js	Tue Aug 09 15:19:45 2022 +0000
@@ -45,7 +45,7 @@
 Array.prototype.forEach.call(document.getElementsByClassName(
   "history_metadata_extractor_h2"),
   (h2) => {
-    var table = h2.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling ;
+    var table = h2.nextElementSibling.nextElementSibling.nextElementSibling ;
     h2.onclick = (e) => {
       if (table.classList.contains("d-none")) {
         table.classList.remove("d-none") ;