Skip to content

Commit 169350a

Browse files
committed
Fix extension context lost errors
1 parent a4bb17f commit 169350a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,8 @@ function getSegmentsMessage(sponsorTimes: SponsorTime[]): string {
25012501
}
25022502

25032503
function updateActiveSegment(currentTime: number): void {
2504+
if (!chrome.runtime?.id) return;
2505+
25042506
previewBar?.updateChapterText(sponsorTimes, sponsorTimesSubmitting, currentTime);
25052507

25062508
chrome.runtime.sendMessage({

0 commit comments

Comments
 (0)