From a21f7e173cbfa618d21510650021bec57a4271fc Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sun, 28 Aug 2022 04:55:06 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/main/plugins/raop.ts | 2 +- src/renderer/main/vueapp.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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) {