/select XHR does not need to be sync.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 14 Jul 2020 13:03:53 +0000 (15:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 14 Jul 2020 13:03:53 +0000 (15:03 +0200)
files/pr0n-fullscreen.js

index ef0fd2aa67c0a6b66596132ad72822a10c329e41..9edac701a6be896aa0a53ab0c2221b1b2f1166f2 100644 (file)
@@ -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);