Files
dostalgia/frontend/src/lib/router.js
T
David Alvarez 1efd10f81f Initial commit: Dostalgia — DOS game hub
- Go backend (single binary) with embedded Svelte frontend
- JSON-per-game storage (no database)
- .jsdos bundle creation on upload
- Dark phosphor-green theme (#33FF33)
- js-dos v8 emulator integration
- Sockdrive support for games >80MB
- IGDB placeholder for future artwork scraping
- Docker deployment ready
2026-05-23 11:18:41 +02:00

10 lines
184 B
JavaScript

/** Simple hash-based router for SPA. */
export function push(path) {
window.location.hash = "#" + path;
}
export function replace(path) {
window.location.replace("#" + path);
}