diff --git a/app/app.vue b/app/app.vue index ab6f914..7a0a146 100644 --- a/app/app.vue +++ b/app/app.vue @@ -84,6 +84,10 @@ export default { let isFinished = true this.bundles = data.states.map(state => state.name.toLowerCase()) + // Ignore if not bundle is given + if (!this.bundles.length) { + return + } for (const state of data.states) { const bundle = state.name.toLowerCase() diff --git a/app/mixins/ws.js b/app/mixins/ws.js index 40fd87f..e1b7974 100644 --- a/app/mixins/ws.js +++ b/app/mixins/ws.js @@ -9,9 +9,8 @@ export default { }, wsConnect(path) { - this.logWS('Connecting...') - this.wsURL = `ws://${location.hostname}:${location.port}${path}` + this.logWS(`Connecting to ${this.wsURL}...`) this.ws = new WebSocket(this.wsURL) @@ -65,7 +64,8 @@ export default { onWSMessage(msg) { let data = msg.data - this.logWS('Message: ', data) + + // this.logWS('Message: ', data) try { if (data[0] === '{') { data = JSON.parse(data)