chore: Prettified Code
[ci skip]
This commit is contained in:
parent
4c34f22ea1
commit
a21f7e173c
2 changed files with 6 additions and 5 deletions
|
@ -323,7 +323,7 @@ export default class RAOP {
|
||||||
this.airtunes.stopAll(function () {
|
this.airtunes.stopAll(function () {
|
||||||
console.log("end");
|
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.airtunes = null;
|
||||||
this.device = null;
|
this.device = null;
|
||||||
this.ipairplay = "";
|
this.ipairplay = "";
|
||||||
|
|
|
@ -4343,12 +4343,13 @@ const app = new Vue({
|
||||||
notyf.success("Device paring failed!");
|
notyf.success("Device paring failed!");
|
||||||
},
|
},
|
||||||
airplayDisconnect(dropped, array = []) {
|
airplayDisconnect(dropped, array = []) {
|
||||||
if (dropped){
|
if (dropped) {
|
||||||
let [ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv] = array
|
let [ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv] = array;
|
||||||
ipcRenderer.send("performAirplayPCM", ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv)
|
ipcRenderer.send("performAirplayPCM", ipv4, ipport, sepassword, title, artist, album, artworkURL, txt, airplay2dv);
|
||||||
} else {
|
} else {
|
||||||
app.activeCasts = [];
|
app.activeCasts = [];
|
||||||
notyf.error("Devices disconnected!");}
|
notyf.error("Devices disconnected!");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
windowFocus(val) {
|
windowFocus(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue