finally fix player stuff

This commit is contained in:
2026-02-06 07:52:17 -08:00
parent 138b11f73b
commit 7eb4bc1bb1

View File

@@ -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;