瀏覽代碼

Fixed issue for normal Docker issues with Station Socket Connection

theflametrooper 8 年之前
父節點
當前提交
83ef3c4ff5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/components/pages/Station.vue

+ 1 - 1
frontend/components/pages/Station.vue

@@ -237,7 +237,7 @@
 			local.interval = 0;
 
 			local.socket = this.$parent.socket;
-			local.stationSocket = io.connect(`http://192.168.99.100:8081/${local.$route.params.id}`);
+			local.stationSocket = io.connect(`${window.location.protocol + '//' + window.location.hostname + ':8081'}/${local.$route.params.id}`);
 			local.stationSocket.on("connected", function(data) {
 				local.currentSong = data.currentSong;
 				local.paused = data.paused;