diff --git a/script.js b/script.js index 84b2ae9..23f455f 100644 --- a/script.js +++ b/script.js @@ -890,14 +890,14 @@ const checkNavigation = () => { const isHomePage = url => url.includes('/home') || url.endsWith('/web/') || url.endsWith('/web/index.html'); if (!isHomePage(newLocation) && isHomePageActive) { - console.log("Leaving homepage, cleaning up slideshow and stopping video"); + console.log("Leaving home page, cleaning up slideshow and stopping video"); isHomePageActive = false; stopBackgroundVideo(); cleanup(); } if (isHomePage(newLocation) && !isHomePageActive) { - console.log("Returning to homepage, reactivating slideshow"); + console.log("Returning to home page, reactivating slideshow"); isHomePageActive = true; fetchRandomMovie(); } @@ -944,7 +944,7 @@ document.addEventListener('DOMContentLoaded', () => { const isHomePage = url => url.includes('/home') || url.endsWith('/web/') || url.endsWith('/web/index.html'); if (isHomePage(window.top.location.href)) { isHomePageActive = true; - console.log("Homepage detected, starting slideshow"); + console.log("Home page detected, starting slideshow"); readCustomList().then(list => { if (list) { movieList = list; currentMovieIndex = 0; } fetchRandomMovie();