Jelajahi Sumber

remote playback: set WebSocket URL according to location host

David Loiret 9 tahun lalu
induk
melakukan
bdf517da24
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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