Simplify if check.

This commit is contained in:
FireMasterK 2022-01-14 01:32:17 +00:00
parent 51eb01d7bd
commit 72a0f0d376
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -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;
}
};