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));
|
const request = objectStore.get(this.video.url.substr(-11));
|
||||||
request.onsuccess = event => {
|
request.onsuccess = event => {
|
||||||
const video = event.target.result;
|
const video = event.target.result;
|
||||||
if (
|
if (video && (video.currentTime ?? 0) > video.duration * 0.9) {
|
||||||
video &&
|
|
||||||
(!this.getPreferenceBoolean("watchHistory", false) ||
|
|
||||||
(video.currentTime ?? 0) > video.duration * 0.9)
|
|
||||||
) {
|
|
||||||
this.showVideo = false;
|
this.showVideo = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue