From 686971502fc0440adbb32001279288c6224fdd26 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Fri, 7 Oct 2022 08:40:04 +0700 Subject: [PATCH] some fixes --- src/main/plugins/raop.ts | 9 ++++++++- src/renderer/main/vueapp.js | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/plugins/raop.ts b/src/main/plugins/raop.ts index db4830ba..f50c15a5 100644 --- a/src/main/plugins/raop.ts +++ b/src/main/plugins/raop.ts @@ -271,7 +271,7 @@ export default class RAOP { console.log(this.devices[idx].controller.key, title ?? "", artist ?? "", album ?? ""); this.airtunes.setTrackInfo(this.devices[idx].controller.key, title ?? "", artist ?? "", album ?? ""); this.uploadImageAirplay(artworkURL); - console.log("done"); + console.log("done", status); this.ok == 2; } }, 1000); @@ -384,6 +384,12 @@ export default class RAOP { console.log("endAll"); this.airtunes = null; this.devices = []; + this.airtunes = null; + + this.ipairplay = ""; + this.portairplay = ""; + this.ok = 1; + this.i = false; }); } else { this.devices = []; @@ -411,6 +417,7 @@ export default class RAOP { this.portairplay = ""; this.ok = 1; this.i = false; + this.devices = []; } }) .catch((err: any) => console.error("lsdsd", err)); diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index 67ca4d8d..26bf4f53 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -2143,6 +2143,7 @@ const app = new Vue({ }, 100); }, setPagePos() { + try{ console.debug({ href: window.location.hash, position: $("#app-content").scrollTop(), @@ -2151,6 +2152,8 @@ const app = new Vue({ href: window.location.hash, position: $("#app-content").scrollTop(), }); + } catch(e){ + } }, routeView(item) { this.setPagePos();