diff options
| author | Fuwn <[email protected]> | 2023-12-17 02:58:43 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-17 02:59:35 -0800 |
| commit | 9c022e2ff03a62a21ffe83b2f58ac9f2e5ed23e0 (patch) | |
| tree | 884161f66949cc9dbe3f50a3a1bcae5841aace98 /src/lib/Tools | |
| parent | fix(activities): blank arrow function (diff) | |
| download | due.moe-9c022e2ff03a62a21ffe83b2f58ac9f2e5ed23e0.tar.xz due.moe-9c022e2ff03a62a21ffe83b2f58ac9f2e5ed23e0.zip | |
fix(sequelspy): always use native release
Diffstat (limited to 'src/lib/Tools')
| -rw-r--r-- | src/lib/Tools/SequelSpy.svelte | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/Tools/SequelSpy.svelte b/src/lib/Tools/SequelSpy.svelte index e8cc98bf..6a07a8a7 100644 --- a/src/lib/Tools/SequelSpy.svelte +++ b/src/lib/Tools/SequelSpy.svelte @@ -8,7 +8,6 @@ import type { Media } from '$lib/AniList/media'; import { page } from '$app/stores'; import { browser } from '$app/environment'; - import type { SubsPlease } from '$lib/subsPlease'; export let user: AniListAuthorisation; @@ -43,8 +42,8 @@ onMount(() => clearAllParameters(['year', 'season'])); - const prequelAiringTime = (prequel: MediaPrequel, subsPlease: SubsPlease) => - airingTime(prequel as unknown as Media, subsPlease); + const prequelAiringTime = (prequel: MediaPrequel) => + airingTime(prequel as unknown as Media, null); </script> <p> @@ -68,11 +67,7 @@ </a> <span style="opacity: 50%;">|</span> {prequel.seen}<span style="opacity: 50%;">/{prequel.episodes}</span> - {#await fetch(`/api/subsplease?tz=${Intl.DateTimeFormat().resolvedOptions().timeZone}`).then( (r) => r.json() )} - Loading ... - {:then subsPlease} - {@html prequelAiringTime(prequel, subsPlease)} - {/await} + {@html prequelAiringTime(prequel)} </li> {/each} </ul> |