From 0674a70624794382a949e7ba28e2191ae733156d Mon Sep 17 00:00:00 2001 From: Chris Hallberg Date: Fri, 21 Oct 2022 16:32:13 -0400 Subject: [PATCH] Remove redundant check. --- src/components/VideoItem.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index dc81d841..136edfb3 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -184,11 +184,7 @@ export default { const request = objectStore.get(this.video.url.substr(-11)); request.onsuccess = event => { const video = event.target.result; - if ( - video && - (!this.getPreferenceBoolean("watchHistory", false) || - (video.currentTime ?? 0) > video.duration * 0.9) - ) { + if (video && (video.currentTime ?? 0) > video.duration * 0.9) { this.showVideo = false; return; }