diff --git a/static/script/save-media-progress.js b/static/script/save-media-progress.js index 13a69c1..16c4f30 100644 --- a/static/script/save-media-progress.js +++ b/static/script/save-media-progress.js @@ -7,10 +7,7 @@ const pageKey = `mediaProgress_${window.location.pathname}`; // Function to save the current time of the most recently played media function saveMediaProgress(media) { - const currentProgress = parseFloat(localStorage.getItem(pageKey)) || 0; - if (media.currentTime > currentProgress) { - localStorage.setItem(pageKey, media.currentTime); - } + localStorage.setItem(pageKey, media.currentTime); } // Function to load and set the saved time for all media elements