From 294eadafb164a318fcf94cdd65fa6fd0fc17d0c2 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Fri, 25 Oct 2019 16:03:56 +0200 Subject: [PATCH] some debugging --- music_assistant/web/app.js | 6 +++++- music_assistant/web/components/player.vue.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/music_assistant/web/app.js b/music_assistant/web/app.js index c270e5a6..0a90cb66 100644 --- a/music_assistant/web/app.js +++ b/music_assistant/web/app.js @@ -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: {}, diff --git a/music_assistant/web/components/player.vue.js b/music_assistant/web/components/player.vue.js index 30d3502f..adf7e32c 100755 --- a/music_assistant/web/components/player.vue.js +++ b/music_assistant/web/components/player.vue.js @@ -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); -- 2.34.1