feat: add branded 404 page
This commit is contained in:
@@ -253,6 +253,13 @@ function renderMemes(memes, options = {}) {
|
||||
}
|
||||
|
||||
async function openSharedContentFromUrl() {
|
||||
const requestedDialog = new URLSearchParams(window.location.search).get('open');
|
||||
if (window.location.pathname === '/' && requestedDialog === 'pet') {
|
||||
petModal.showModal();
|
||||
window.history.replaceState({}, '', '/');
|
||||
return;
|
||||
}
|
||||
|
||||
if (window.location.pathname === '/lore' || window.location.pathname === '/lore/') {
|
||||
await openLoreDialog();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user