mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Fix race condition causing full video label not to display
This commit is contained in:
@@ -43,8 +43,10 @@ export class CategoryPill {
|
|||||||
this.root.render(<CategoryPillComponent ref={this.ref} vote={vote} />);
|
this.root.render(<CategoryPillComponent ref={this.ref} vote={vote} />);
|
||||||
|
|
||||||
if (this.unsavedState) {
|
if (this.unsavedState) {
|
||||||
this.ref.current?.setState(this.unsavedState);
|
GenericUtils.wait(() => this.ref.current).then(() => {
|
||||||
this.unsavedState = null;
|
this.ref.current?.setState(this.unsavedState);
|
||||||
|
this.unsavedState = null;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (onMobileYouTube) {
|
if (onMobileYouTube) {
|
||||||
|
|||||||
Reference in New Issue
Block a user