mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-27 18:08:26 +03:00
Fix full video label sometimes not appearing when you open a video in a background tab
This commit is contained in:
@@ -43,7 +43,7 @@ export class CategoryPill {
|
||||
}
|
||||
|
||||
private async attachToPageInternal(): Promise<void> {
|
||||
let referenceNode =
|
||||
let referenceNode =
|
||||
await waitFor(() => getYouTubeTitleNode());
|
||||
|
||||
// Experimental YouTube layout with description on right
|
||||
@@ -119,6 +119,8 @@ export class CategoryPill {
|
||||
}
|
||||
|
||||
async setSegment(segment: SponsorTime): Promise<void> {
|
||||
await waitFor(() => this.ref.current);
|
||||
|
||||
if (this.ref.current?.state?.segment !== segment) {
|
||||
const newState = {
|
||||
segment,
|
||||
|
||||
Reference in New Issue
Block a user