From 72a0f0d376cf0b53974b006252dd7418cb0fd8ca Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 14 Jan 2022 01:32:17 +0000 Subject: [PATCH] Simplify if check. --- src/components/VideoPlayer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index b62b48cd..5e55d214 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -214,7 +214,7 @@ export default { var request = store.get(this.video.id); request.onsuccess = function (event) { var video = event.target.result; - if (video && video.currentTime) { + if (video?.currentTime) { videoEl.currentTime = video.currentTime; } };