mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Remove redundant check.
This commit is contained in:
parent
8d4c5c3d26
commit
0674a70624
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue