aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/VideoBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-30 20:56:59 +0000
committerbobzel <zzzman@gmail.com>2020-10-30 20:56:59 +0000
commit38fa32b8448485b4e7ed65a89dfb24502212027c (patch)
tree4a4891517850f2c96cecb697b9dd25a96417ecc3 /src/client/views/nodes/VideoBox.tsx
parent1927956186ea5fb56d8f935760ddbf82362230e5 (diff)
got rid of warning for youtube videos on startup when mousing ot of them before they are ready()
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
-rw-r--r--src/client/views/nodes/VideoBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx
index f1ed4a355..190193351 100644
--- a/src/client/views/nodes/VideoBox.tsx
+++ b/src/client/views/nodes/VideoBox.tsx
@@ -159,7 +159,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<FieldViewProps, VideoD
@action
updateTimecode = () => {
this.player && (this.layoutDoc._currentTimecode = this.player.currentTime);
- this._youtubePlayer && (this.layoutDoc._currentTimecode = this._youtubePlayer.getCurrentTime());
+ this._youtubePlayer && (this.layoutDoc._currentTimecode = this._youtubePlayer.getCurrentTime?.());
}
componentDidMount() {