From 799b1c499c677f3baf0dab1a7a2d371d88e25254 Mon Sep 17 00:00:00 2001 From: Redume Date: Mon, 29 Jul 2024 11:22:21 +0300 Subject: [PATCH] Changed the path to the 404 error --- static/script/wallpaperLoad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/script/wallpaperLoad.js b/static/script/wallpaperLoad.js index f497caa..0d66d24 100644 --- a/static/script/wallpaperLoad.js +++ b/static/script/wallpaperLoad.js @@ -16,8 +16,8 @@ function parseURL() { let pathname = document.location.pathname; pathname = pathname.slice(pathname.lastIndexOf('/')+1) - if (isNaN(new Date(pathname).getTime())) return window.location.replace("./404.html"); - if (!isValidDate(pathname)) return window.location.replace("./404.html"); + if (isNaN(new Date(pathname).getTime())) return window.location.replace("../404.html"); + if (!isValidDate(pathname)) return window.location.replace("../404.html"); return pathname; }