소스 검색

remote playback: set WebSocket URL according to location host

David Loiret 9 년 전
부모
커밋
bdf517da24
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      Resources/web/playerControl.js

+ 1 - 2
Resources/web/playerControl.js

@@ -523,8 +523,7 @@ $(function() {
     /**
      * Instanciation of the Ws class
      */
-    //@TODO: This URL need to be updated at runtime
-    var URL = 'ws://192.168.0.14:8888';
+    var URL = 'ws://' + location.host;
 
     var socket = new Ws({
         url: URL