mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix keybind being flaky
This commit is contained in:
parent
c3489e54a6
commit
43a9ba0f9e
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ class SkipNotice {
|
|||
}
|
||||
|
||||
setShowKeybindHint(value: boolean): void {
|
||||
this.skipNoticeRef.current.setState({
|
||||
this.skipNoticeRef?.current?.setState({
|
||||
showKeybindHint: value
|
||||
});
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ class SkipNotice {
|
|||
}
|
||||
|
||||
toggleSkip(): void {
|
||||
this.skipNoticeRef.current.prepAction(SkipNoticeAction.Unskip);
|
||||
this.skipNoticeRef?.current?.prepAction(SkipNoticeAction.Unskip);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue