add fail notyf

This commit is contained in:
vapormusic 2022-05-01 17:40:13 +07:00
parent 6728c4aa6d
commit c77ce54000
2 changed files with 6 additions and 0 deletions

View file

@ -198,6 +198,9 @@ export default class RAOP {
if (status == "pair_success"){
this._win.webContents.executeJavaScript(`app.sendAirPlaySuccess()`)
}
if (status == "pair_failed"){
this._win.webContents.executeJavaScript(`app.sendAirPlayFailed()`)
}
if (status == 'stopped') {
this.airtunes.stopAll(() => {
console.log('end');

View file

@ -3837,6 +3837,9 @@ const app = new Vue({
sendAirPlaySuccess(){
notyf.success('Device paired successfully!');
},
sendAirPlayFailed(){
notyf.error('Device paring failed!');
},
windowFocus(val) {
if (val) {
document.querySelectorAll(".animated-artwork-video").forEach(el => {