Explorar o código

Fixed issue for normal Docker issues with Station Socket Connection

theflametrooper %!s(int64=8) %!d(string=hai) anos
pai
achega
83ef3c4ff5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;