Fix song sharing on iDevice (for real)

This commit is contained in:
An Phan 2016-07-11 23:03:48 +08:00
parent e69c989a1f
commit 8cd9e66485
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

@ -74,7 +74,7 @@ export default {
if (isMobile.apple.device) {
// Mobile Safari doesn't allow autoplay, so we just queue.
queueStore.queue(song);
this.parent.go('queue');
loadMainView('queue');
} else {
playback.queueAndPlay(song);
}
@ -82,7 +82,6 @@ export default {
},
init() {
this.routes.parent = this;
this.loadState();
window.addEventListener('popstate', () => this.loadState(), true);
},