Browse Source

Fixed issue for normal Docker issues with Station Socket Connection

theflametrooper 8 năm trước cách đây
mục cha
commit
83ef3c4ff5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;