From 22a6437c17e788ec44c32ed5f8ecce7e99b42cab Mon Sep 17 00:00:00 2001 From: Redume Date: Tue, 23 Jul 2024 17:57:46 +0300 Subject: [PATCH] Fixing an error with a variable --- static/script/wallpaperLoad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/script/wallpaperLoad.js b/static/script/wallpaperLoad.js index 425f479..f497caa 100644 --- a/static/script/wallpaperLoad.js +++ b/static/script/wallpaperLoad.js @@ -13,7 +13,7 @@ function load(date) { } function parseURL() { - let pathname = '2024-01-01'; + let pathname = document.location.pathname; pathname = pathname.slice(pathname.lastIndexOf('/')+1) if (isNaN(new Date(pathname).getTime())) return window.location.replace("./404.html");