mirror of
https://github.com/koel/koel
synced 2024-11-10 22:54:16 +00:00
Fix song sharing on iDevice
This commit is contained in:
parent
7ab5c76ef0
commit
e69c989a1f
2 changed files with 2 additions and 4 deletions
|
@ -77,9 +77,6 @@ export default {
|
|||
playback.init();
|
||||
hideOverlay();
|
||||
|
||||
// Load the default view.
|
||||
router.go('home');
|
||||
|
||||
// Ask for user's notification permission.
|
||||
this.requestNotifPermission();
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ export default {
|
|||
if (isMobile.apple.device) {
|
||||
// Mobile Safari doesn't allow autoplay, so we just queue.
|
||||
queueStore.queue(song);
|
||||
this.go('queue');
|
||||
this.parent.go('queue');
|
||||
} else {
|
||||
playback.queueAndPlay(song);
|
||||
}
|
||||
|
@ -82,6 +82,7 @@ export default {
|
|||
},
|
||||
|
||||
init() {
|
||||
this.routes.parent = this;
|
||||
this.loadState();
|
||||
window.addEventListener('popstate', () => this.loadState(), true);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue