mirror of
https://github.com/skoelle/28k8-moonweb-org.git
synced 2026-09-18 02:40:24 +00:00
404 page
This commit is contained in:
@@ -3,5 +3,5 @@ export interface Props { showBack?: boolean; }
|
||||
const { showBack = true } = Astro.props;
|
||||
---
|
||||
<div class="nav-bar">
|
||||
{showBack && <a href="#" onclick="event.preventDefault(); history.back();">[B] Back</a>}
|
||||
{showBack && <a href="/bbs/">[B] Back to Main Menu</a>}
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,6 @@ export default function TerminalShell({ children }: { children?: React.ReactNode
|
||||
if (e.metaKey || e.ctrlKey || e.altKey) return;
|
||||
const entry = findKeyEntry(e.key);
|
||||
if (!entry) return;
|
||||
if (entry.href === 'back') { window.history.back(); return; }
|
||||
if (entry.href === 'disconnect') { resetConnected(); window.location.href = '/'; return; }
|
||||
window.location.href = entry.href;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user