From: Steinar H. Gunderson Date: Sat, 9 Dec 2006 16:47:18 +0000 (+0100) Subject: Fix some issues with Firefox requesting the same page over and over again. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=8e147d49e7c7a81680bdf14f77c0d0e227aaa6c6 Fix some issues with Firefox requesting the same page over and over again. --- diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 3a7dba6..181a82c 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -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); }