finally fix player stuff
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { browser } from "$app/environment";
|
import { browser } from "$app/environment";
|
||||||
import { onDestroy, onMount } from "svelte";
|
import { onDestroy, onMount, tick } from "svelte";
|
||||||
import {
|
import {
|
||||||
clearQueue,
|
clearQueue,
|
||||||
jumpToTrack,
|
jumpToTrack,
|
||||||
@@ -115,6 +115,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function syncAndAutoplay() {
|
async function syncAndAutoplay() {
|
||||||
|
await tick();
|
||||||
const el = audioEl;
|
const el = audioEl;
|
||||||
if (!el) return;
|
if (!el) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user