aboutsummaryrefslogtreecommitdiffstats
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 08a7ffe..99ab3b8 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;
/*********************************************/
/**** ****/