feat: add branded 404 page

This commit is contained in:
2026-08-30 13:49:35 -03:00
parent 48f05bcf8a
commit a3859f1efc
7 changed files with 256 additions and 2 deletions
+7
View File
@@ -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;