diff --git a/client/src/routes/Transfers.svelte b/client/src/routes/Transfers.svelte index 0016b2b..b29334a 100644 --- a/client/src/routes/Transfers.svelte +++ b/client/src/routes/Transfers.svelte @@ -66,10 +66,10 @@ await list(); } -function streamURL(hash, index = 0) { - const token = localStorage.getItem("token"); - return `${API}/stream/${hash}?index=${index}&token=${token}`; -} + function streamURL(hash, index = 0) { + const token = localStorage.getItem("token"); + return `${API}/stream/${hash}?index=${index}&token=${token}`; + } function formatSpeed(bytesPerSec) { if (!bytesPerSec || bytesPerSec <= 0) return "0 MB/s"; @@ -221,8 +221,8 @@ function streamURL(hash, index = 0) { } onMount(() => { - list(); // 🔒 token'lı liste çekimi - wsConnect(); // 🔒 token'lı WebSocket + list(); // 🔒 token'lı liste çekimi + wsConnect(); // 🔒 token'lı WebSocket const slider = document.querySelector(".volume-slider"); if (slider) { slider.value = volume; @@ -235,7 +235,6 @@ function streamURL(hash, index = 0) { -

Transfers

@@ -266,7 +265,9 @@ function streamURL(hash, index = 0) { {#if t.thumbnail} thumb {:else} -
📷
+
+ +
{/if}
@@ -383,7 +384,10 @@ function streamURL(hash, index = 0) {