mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-06 01:13:57 +03:00
Changed the path to the 404 error
This commit is contained in:
parent
ee295c545e
commit
799b1c499c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue