add fail notyf
This commit is contained in:
parent
6728c4aa6d
commit
c77ce54000
2 changed files with 6 additions and 0 deletions
|
@ -198,6 +198,9 @@ export default class RAOP {
|
||||||
if (status == "pair_success"){
|
if (status == "pair_success"){
|
||||||
this._win.webContents.executeJavaScript(`app.sendAirPlaySuccess()`)
|
this._win.webContents.executeJavaScript(`app.sendAirPlaySuccess()`)
|
||||||
}
|
}
|
||||||
|
if (status == "pair_failed"){
|
||||||
|
this._win.webContents.executeJavaScript(`app.sendAirPlayFailed()`)
|
||||||
|
}
|
||||||
if (status == 'stopped') {
|
if (status == 'stopped') {
|
||||||
this.airtunes.stopAll(() => {
|
this.airtunes.stopAll(() => {
|
||||||
console.log('end');
|
console.log('end');
|
||||||
|
|
|
@ -3837,6 +3837,9 @@ const app = new Vue({
|
||||||
sendAirPlaySuccess(){
|
sendAirPlaySuccess(){
|
||||||
notyf.success('Device paired successfully!');
|
notyf.success('Device paired successfully!');
|
||||||
},
|
},
|
||||||
|
sendAirPlayFailed(){
|
||||||
|
notyf.error('Device paring failed!');
|
||||||
|
},
|
||||||
windowFocus(val) {
|
windowFocus(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
document.querySelectorAll(".animated-artwork-video").forEach(el => {
|
document.querySelectorAll(".animated-artwork-video").forEach(el => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue