some debugging
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Fri, 25 Oct 2019 14:03:56 +0000 (16:03 +0200)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Fri, 25 Oct 2019 14:03:56 +0000 (16:03 +0200)
music_assistant/web/app.js
music_assistant/web/components/player.vue.js

index c270e5a68e4c68acb4108dd4f8e18980f1454524..0a90cb66b40220e3caa89edae6324d1d6d24f140 100644 (file)
@@ -67,7 +67,8 @@ const globalStore = new Vue({
         loading: false,
         showplaymenu: false,
         showsearchbox: false,
-        playmenuitem: null
+        playmenuitem: null,
+        server: null
     }
 })
 Vue.prototype.$globals = globalStore;
@@ -102,6 +103,9 @@ var app = new Vue({
             localStorage.setItem('last_update', cur_update);
             window.location.reload(true);
         }
+        var loc = window.location;
+        console.log(loc);
+        this.$globals.server = loc;
     },
     data: { },
     methods: {},
index 30d3502f0fd4f9522594a0e102da5527f5a4b4e8..adf7e32cf0ec931a85269909b6790bdbb02c8764 100755 (executable)
@@ -375,7 +375,7 @@ Vue.component("player", {
       this.ws = new WebSocket(new_uri);
 
       this.ws.onopen = function() {
-        console.log('websocket connected!');
+        console.log('websocket connected! ' + new_uri);
         this.createAudioPlayer();
         data = JSON.stringify({message:'players', message_details: null});
         this.ws.send(data);