mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
Fix keybind being flaky
This commit is contained in:
@@ -54,7 +54,7 @@ class SkipNotice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setShowKeybindHint(value: boolean): void {
|
setShowKeybindHint(value: boolean): void {
|
||||||
this.skipNoticeRef.current.setState({
|
this.skipNoticeRef?.current?.setState({
|
||||||
showKeybindHint: value
|
showKeybindHint: value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ class SkipNotice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toggleSkip(): void {
|
toggleSkip(): void {
|
||||||
this.skipNoticeRef.current.prepAction(SkipNoticeAction.Unskip);
|
this.skipNoticeRef?.current?.prepAction(SkipNoticeAction.Unskip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user