X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=files%2Fpr0n-fullscreen.js;h=181a82cb1e0745bde78677c7c02ca5ab16b6c74f;hp=3a7dba62e0c6bbed2653928d8bdeccc7d576776b;hb=437c5df6373cbf14cdaaa927655abe06f78b6d27;hpb=8139390f4df74822df8d485176bac88a66f912de 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); }