Update HTML test page to new template. Added Config file selection from UI.
[apps/agl-service-unicens.git] / htdocs / AFB-websock.js
index 08a7ffe..99ab3b8 100644 (file)
@@ -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;
 
 /*********************************************/
 /****                                     ****/