diff --git a/src/main/plugins/raop.ts b/src/main/plugins/raop.ts index b292590c..95c17195 100644 --- a/src/main/plugins/raop.ts +++ b/src/main/plugins/raop.ts @@ -323,7 +323,7 @@ export default class RAOP { this.airtunes.stopAll(function () { console.log("end"); }); - this._win.webContents.executeJavaScript('app.airplayDisconnect(false)').catch((err: any) => console.error(err)); + this._win.webContents.executeJavaScript("app.airplayDisconnect(false)").catch((err: any) => console.error(err)); this.airtunes = null; this.device = null; this.ipairplay = ""; diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index e4d1fac4..5683e223 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -4343,12 +4343,13 @@ const app = new Vue({ notyf.success("Device paring failed!"); }, airplayDisconnect(dropped, array = []) { - if (dropped){ - let [ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv] = array - ipcRenderer.send("performAirplayPCM", ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv) + if (dropped) { + let [ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv] = array; + ipcRenderer.send("performAirplayPCM", ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv); } else { app.activeCasts = []; - notyf.error("Devices disconnected!");} + notyf.error("Devices disconnected!"); + } }, windowFocus(val) { if (val) {