mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Redirect user to 404 page for non-existing player-settings pages
This commit is contained in:
@@ -24,7 +24,8 @@ window.addEventListener('load', () => {
|
|||||||
nameInput.addEventListener('keyup', (event) => updateBaseSetting(event));
|
nameInput.addEventListener('keyup', (event) => updateBaseSetting(event));
|
||||||
nameInput.value = playerSettings.name;
|
nameInput.value = playerSettings.name;
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(error);
|
const url = new URL(window.location.href);
|
||||||
|
window.location.replace(`${url.protocol}//${url.hostname}/page-not-found`);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user