some fixes

This commit is contained in:
vapormusic 2022-10-07 08:40:04 +07:00
parent 97bb42f14f
commit 686971502f
2 changed files with 11 additions and 1 deletions

View file

@ -271,7 +271,7 @@ export default class RAOP {
console.log(this.devices[idx].controller.key, title ?? "", artist ?? "", album ?? ""); console.log(this.devices[idx].controller.key, title ?? "", artist ?? "", album ?? "");
this.airtunes.setTrackInfo(this.devices[idx].controller.key, title ?? "", artist ?? "", album ?? ""); this.airtunes.setTrackInfo(this.devices[idx].controller.key, title ?? "", artist ?? "", album ?? "");
this.uploadImageAirplay(artworkURL); this.uploadImageAirplay(artworkURL);
console.log("done"); console.log("done", status);
this.ok == 2; this.ok == 2;
} }
}, 1000); }, 1000);
@ -384,6 +384,12 @@ export default class RAOP {
console.log("endAll"); console.log("endAll");
this.airtunes = null; this.airtunes = null;
this.devices = []; this.devices = [];
this.airtunes = null;
this.ipairplay = "";
this.portairplay = "";
this.ok = 1;
this.i = false;
}); });
} else { } else {
this.devices = []; this.devices = [];
@ -411,6 +417,7 @@ export default class RAOP {
this.portairplay = ""; this.portairplay = "";
this.ok = 1; this.ok = 1;
this.i = false; this.i = false;
this.devices = [];
} }
}) })
.catch((err: any) => console.error("lsdsd", err)); .catch((err: any) => console.error("lsdsd", err));

View file

@ -2143,6 +2143,7 @@ const app = new Vue({
}, 100); }, 100);
}, },
setPagePos() { setPagePos() {
try{
console.debug({ console.debug({
href: window.location.hash, href: window.location.hash,
position: $("#app-content").scrollTop(), position: $("#app-content").scrollTop(),
@ -2151,6 +2152,8 @@ const app = new Vue({
href: window.location.hash, href: window.location.hash,
position: $("#app-content").scrollTop(), position: $("#app-content").scrollTop(),
}); });
} catch(e){
}
}, },
routeView(item) { routeView(item) {
this.setPagePos(); this.setPagePos();