diff --git a/Scenes/Global/Remote.gd b/Scenes/Global/Remote.gd index c303bd3..1b27b13 100644 --- a/Scenes/Global/Remote.gd +++ b/Scenes/Global/Remote.gd @@ -18,6 +18,9 @@ func fetch(url: String, cbObj: Object, cbFn: String): cbObj.call(cbFn, HTTPRequest.RESULT_SUCCESS, 200, [], buf) return var req := HTTPRequest.new() + # On HTML5 we cannot use threaded requests + # On other platforms (such as Android), we *need* to! + req.use_threads = !OS.has_feature("HTML5") add_child(req) req.connect("request_completed", self, "_request_completed", [url, cbObj, cbFn]) req.request(url)