From 2bf2b02a780f759809763d6f7545aaa3675ce607 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 30 Jan 2024 21:59:18 -0800
Subject: fix(layout): load subtitles for completed

---
 src/routes/+layout.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 37c65154..059d1e60 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -72,7 +72,7 @@
 	});
 
 	$: {
-		if (data.url === '/' && !$subsPlease)
+		if ((data.url === '/' || data.url === '/completed') && !$subsPlease)
 			fetch(root(`/api/subsplease?tz=${Intl.DateTimeFormat().resolvedOptions().timeZone}`))
 				.then((r) => r.json())
 				.then((r) => subsPlease.set(r));
-- 
cgit v1.2.3

