mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-06 01:13:57 +03:00
Fixing an error with a variable
This commit is contained in:
parent
5f1eb72303
commit
22a6437c17
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue