Skip to content

Commit 97e7b20

Browse files
committed
Revert "try without floatplane offset"
This reverts commit d8b4f9a.
1 parent d8b4f9a commit 97e7b20

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

src/routes/history/show/[...showDate]/merch-messages/components/MerchMessage.svelte

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,19 @@
2020
const seconds = Math.floor(message.timestamp);
2121
const imageUrl = `https://merch-message-images.whenplane.com/${message.show}/images/${seconds}.jpg`;
2222
23-
const floatplaneSeconds = $derived(
24-
source.startsWith('floatplane')
25-
? seconds
26-
: preShowLength !== null
27-
? seconds + Math.floor(preShowLength / 1e3)
28-
: null
29-
);
30-
const youtubeSeconds = $derived(
23+
const floatplaneSeconds = source.startsWith('floatplane')
24+
? source === 'floatplane-live'
25+
? seconds + 50
26+
: seconds
27+
: preShowLength !== null
28+
? seconds + Math.floor(preShowLength / 1e3)
29+
: null;
30+
const youtubeSeconds =
3131
source === 'youtube'
3232
? seconds
3333
: preShowLength !== null
3434
? (floatplaneSeconds ?? seconds) - Math.floor(preShowLength / 1e3)
35-
: null
36-
);
35+
: null;
3736
</script>
3837

3938
<div

0 commit comments

Comments
 (0)