summaryrefslogtreecommitdiffstats
path: root/htdocs/AFB-websock.js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/AFB-websock.js')
-rw-r--r--htdocs/AFB-websock.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/htdocs/AFB-websock.js b/htdocs/AFB-websock.js
index e77ec89..ff9fa60 100644
--- a/htdocs/AFB-websock.js
+++ b/htdocs/AFB-websock.js
@@ -1,7 +1,10 @@
+var urlws;
+var urlhttp;
+
AFB = function(base, initialtoken){
-var urlws = "ws://"+window.location.host+"/"+base;
-var urlhttp = "http://"+window.location.host+"/"+base;
+urlws = "ws://"+window.location.host+"/"+base;
+urlhttp = "http://"+window.location.host+"/"+base;
/*********************************************/
/**** ****/