]> git.sesse.net Git - pr0n/blobdiff - files/pr0n-fullscreen.js
Hide the infobox immediately when going to immersive mode.
[pr0n] / files / pr0n-fullscreen.js
index 75ef1f81ac49895bcb9e14e8d65b24cc28bf825b..7f5aed6dbe79ebce3b0507674232e923a4c3e415 100644 (file)
@@ -317,7 +317,7 @@ function update_shown_images()
                //    inum !== global_image_num + 1) {
                //      to_remove.push(child);
                //}
-               if (inum !== global_image_num) {
+               if (inum !== global_image_num || (child.className === "fsbox" && !global_infobox)) {
                        to_remove.push(child);
                }
        }