summaryrefslogtreecommitdiff
path: root/www/scripts
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-07-24 13:12:41 +0000
committerIan C <ianc@noddybox.co.uk>2018-07-24 13:12:41 +0000
commitba923b884a2678b5100e6defd07c9b7adb48bf30 (patch)
treee031b04db1ccbd1ef11b40f7607dc6e13c1f8b14 /www/scripts
parent44131e56b84d636f6a85e64b965d0a04faadc2d0 (diff)
Don't know if it matters, but tried to stop chacheing.
Diffstat (limited to 'www/scripts')
-rw-r--r--www/scripts/main.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/www/scripts/main.js b/www/scripts/main.js
index d989803..dc7e001 100644
--- a/www/scripts/main.js
+++ b/www/scripts/main.js
@@ -48,17 +48,11 @@ function WebRequest(url, func, args)
{
var f;
+ url += "?t=" + Math.random();
+
for(f = 0; f < args.length; f += 2)
{
- if (f == 0)
- {
- url += "?";
- }
- else
- {
- url += "&";
- }
-
+ url += "&";
url += args[f] + "=";
url += encodeURIComponent(args[f+1]);
}