feat(ui): music sayfasında mini player'ı gizle _2

This commit is contained in:
2026-02-03 16:53:15 +03:00
parent e66ace9ed5
commit 6fc2d2c45f

View File

@@ -30,6 +30,7 @@
let wsCounts; let wsCounts;
let refreshTimer = null; let refreshTimer = null;
const location = useLocation(); const location = useLocation();
$: isMusicRoute = ($location?.pathname || "").startsWith("/music");
const scheduleMediaRefresh = () => { const scheduleMediaRefresh = () => {
if (refreshTimer) return; if (refreshTimer) return;
@@ -165,7 +166,7 @@
<Route path="/trash" component={Trash} /> <Route path="/trash" component={Trash} />
</div> </div>
{#if !($location?.pathname || "").startsWith("/music")} {#if !isMusicRoute}
<MiniPlayer /> <MiniPlayer />
{/if} {/if}
<Toast /> <Toast />