From 8e147d49e7c7a81680bdf14f77c0d0e227aaa6c6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 9 Dec 2006 17:47:18 +0100 Subject: [PATCH] Fix some issues with Firefox requesting the same page over and over again. --- files/pr0n-fullscreen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2