mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-24 09:36:20 +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() {
|
function parseURL() {
|
||||||
let pathname = '2024-01-01';
|
let pathname = document.location.pathname;
|
||||||
pathname = pathname.slice(pathname.lastIndexOf('/')+1)
|
pathname = pathname.slice(pathname.lastIndexOf('/')+1)
|
||||||
|
|
||||||
if (isNaN(new Date(pathname).getTime())) return window.location.replace("./404.html");
|
if (isNaN(new Date(pathname).getTime())) return window.location.replace("./404.html");
|
||||||
|
|
Loading…
Add table
Reference in a new issue