]> git.sesse.net Git - pr0n/blobdiff - files/pr0n-fullscreen.js
Fix some issues with Firefox requesting the same page over and over again.
[pr0n] / files / pr0n-fullscreen.js
index 3a7dba62e0c6bbed2653928d8bdeccc7d576776b..181a82cb1e0745bde78677c7c02ca5ab16b6c74f 100644 (file)
@@ -70,7 +70,7 @@ function display_image(width, height, evt, filename, element_id)
        var url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/" + filename;
        var img = document.getElementById(element_id);
        if (img != null) {
-               img.src = "";
+               img.src = "data:";
                img.parentNode.removeChild(img);
        }
 
@@ -93,7 +93,7 @@ function prepare_preload(img, width, height, evt, filename)
        // cancel any pending preload
        var preload = document.getElementById("preload");
        if (preload != null) {
-               preload.src = "";
+               preload.src = "data:";
                preload.parentNode.removeChild(preload);
        }