Skip to content

Commit e3bc78a

Browse files
committed
catch title being undefined
1 parent 7b2bbd3 commit e3bc78a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/CurrentTitle.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
let strippedTitle: string | undefined = undefined;
1111
$: {
1212
const splitPoint = " - WAN Show";
13-
const parts = liveStatus?.floatplane?.title.split(splitPoint);
13+
const parts = liveStatus?.floatplane?.title?.split(splitPoint);
1414
parts?.pop();
1515
strippedTitle = parts?.join(splitPoint);
1616
}

0 commit comments

Comments
 (0)