Nikolay Suslov преди 7 години
родител
ревизия
e11b346f60
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      public/index.html
  2. 1 1
      public/web/lib/app.js
  3. 2 2
      support/client/lib/vwf.js

+ 1 - 1
public/index.html

@@ -109,7 +109,7 @@
             </div>
             <div id="reflectorMenu">
                 <div id="reflectorSelect" class="mdc-text-field mdc-text-field--upgraded">
-                    <input id="currentReflector" type="text" class="mdc-text-field__input" id="my-text-field" aria-controls="my-text-field-helper-text">
+                    <input id="currentReflector" type="text" class="mdc-text-field__input" id="my-text-field" aria-controls="my-text-field-helper-text" style="width:250px;">
                     <label for="my-text-field" class="mdc-text-field__label">Reflector</label>
                     <div class="mdc-text-field__bottom-line"></div>
                   </div>

+ 1 - 1
public/web/lib/app.js

@@ -19,7 +19,7 @@ class WebApp {
         this.initReflectorServer();
 
         //window.location.host
-        var socket = io.connect(window.location.protocol + "//" + this.currentReflector, this.options);
+        var socket = io.connect(this.currentReflector, this.options);
 
         var self = this;
 

+ 2 - 2
support/client/lib/vwf.js

@@ -870,8 +870,8 @@
 
                     //window.location.host
             var host = localStorage.getItem('lcs_reflector'); 
-            if(!host) host = window.location.host;       
-            socket = io.connect( window.location.protocol + "//" + host, options );
+            if(!host) host = window.location.origin;       
+            socket = io.connect( host, options );
                     
 
                 } else {  // Ruby Server -- only supports socket.io 0.6