diff options
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r-- | web/share/js/tools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index 006453bd..31e8b9b4 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -36,14 +36,14 @@ export var tools = new function() { /************************************************************************/ - self.makeRequest = function(method, url, callback, body=null, content_type=null) { + self.makeRequest = function(method, url, callback, body=null, content_type=null, timeout=15000) { let http = new XMLHttpRequest(); http.open(method, url, true); if (content_type) { http.setRequestHeader("Content-Type", content_type); } http.onreadystatechange = callback; - http.timeout = 15000; + http.timeout = timeout; http.send(body); return http; }; |