From: Steinar H. Gunderson Date: Tue, 14 Jul 2020 13:03:53 +0000 (+0200) Subject: /select XHR does not need to be sync. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=87067d612c3db377d5675c53a9e169ddf25f46d4 /select XHR does not need to be sync. --- diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index ef0fd2a..9edac70 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -414,7 +414,7 @@ function select_image(evt, filename, selected) } var req = new XMLHttpRequest(); - req.open("POST", window.location.origin + "/select", false); + req.open("POST", window.location.origin + "/select", true); req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); req.send("event=" + evt + "&filename=" + filename + "&selected=" + selected);