summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorWes van der Vleuten <16665772+WesVleuten@users.noreply.github.com>2022-11-08 23:15:42 +0100
committerWes van der Vleuten <16665772+WesVleuten@users.noreply.github.com>2022-11-08 23:15:42 +0100
commitf604c1c68bbba81310ca2fd0a7283482840e0a26 (patch)
tree332e8e33d985806bf47a816c75f391e53fd5c4f8 /assets/js
parent7b573817734dfd48fc6d1fbdc9a0a99f379f0ed1 (diff)
downloadinvidious-f604c1c68bbba81310ca2fd0a7283482840e0a26.tar.gz
invidious-f604c1c68bbba81310ca2fd0a7283482840e0a26.tar.bz2
invidious-f604c1c68bbba81310ca2fd0a7283482840e0a26.zip
Fixed thumbnails with darkreader, Added watched indicator in more locations
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/watched_widget.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/assets/js/watched_widget.js b/assets/js/watched_widget.js
index 10b33c1a..ffcdaad8 100644
--- a/assets/js/watched_widget.js
+++ b/assets/js/watched_widget.js
@@ -41,15 +41,13 @@ function get_all_video_times() {
}
var watchedIndicators = document.getElementsByClassName('watched-indicator');
+console.log('indicators', watchedIndicators.length);
for (var i = 0; i < watchedIndicators.length; i++) {
var indicator = watchedIndicators[i];
-
var watched_part = get_all_video_times()[indicator.getAttribute('data-id')];
var total = parseInt(indicator.getAttribute('data-length'), 10);
-
var percentage = Math.round((watched_part / total) * 100);
-
if (percentage < 5) {
percentage = 5;
}