Merge pull request #972 from ciderapp/feature/aptest

Feature/aptest
This commit is contained in:
vapormusic 2022-05-01 17:42:11 +07:00 committed by GitHub
commit d2c2859f26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 => {