Fix home page navigation not working
[hnim.git] / hnim.js
diff --git a/hnim.js b/hnim.js
index 593d56c..890852d 100644 (file)
--- a/hnim.js
+++ b/hnim.js
@@ -25,7 +25,7 @@
     selectedElement.style.outline = '';
     selectedElement = comment;
     selectedElement.style.outline = '1px dashed black';
-    if (!visible(comment)) {
+    while (!visible(comment)) {
       callback();
     }
   }