X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=files%2Fpr0n-fullscreen.js;h=1ad74af8526904059c8f778797d7a31c9c9d84db;hb=45a498bb6c353ee9e522ea3b4831e4ba78335ecc;hp=3cc60558271cebbeb7a0ff89a43cc16a64675575;hpb=b0fbbdc03df1966524472c026371235db2d45b48;p=pr0n diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 3cc6055..1ad74af 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -176,8 +176,7 @@ function display_image_num(num, element_id) center_image(num); // replace the anchor part (if any) with the image number - var baseurl = (window.location.toString().split("#"))[0]; - window.location = baseurl + "#" + (num+1); + window.location.hash = "#" + (num+1); } return img;