summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-09-20 11:07:22 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-09-20 11:07:22 +0100
commitc9f80f3d8fd3ec2d00c588dc7bacf0dbc329eda8 (patch)
treeb06a9ded2685d230e94481e27ae51676e78adc63
parent53e6f8ddc3a07ac781cb00d5af9805de16178415 (diff)
downloadleaflet-soton-c9f80f3d8fd3ec2d00c588dc7bacf0dbc329eda8.tar
leaflet-soton-c9f80f3d8fd3ec2d00c588dc7bacf0dbc329eda8.tar.gz
Uninformed changes to the timeout and retry delay
This could help with loading the data on devices with slower connections.
-rw-r--r--src/leaflet-soton.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 1673318..ac5754b 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -29,7 +29,7 @@
if (data === null) {
setTimeout(function() {
LS.getData(callback);
- }, 1000);
+ }, 5000);
return;
}
@@ -1632,7 +1632,7 @@ SELECT * WHERE {\
xhttp.ontimeout = function () {
callback(null);
};
- xhttp.timeout = 3000;
+ xhttp.timeout = 4000;
options.data = options.data || null;