Skip to content

Commit 75580ff

Browse files
author
DevBot
committed
fix(reader): call setRouter(app) so book cards navigate
1 parent ae10fbd commit 75580ff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { createApp } from "./spa-lite.ts";
2-
import { routes } from "./routes.ts";
2+
import { routes, setRouter } from "./routes.ts";
33

44
export function bootReader() {
5-
createApp(routes);
5+
const app = createApp(routes);
6+
setRouter(app);
67
}
78

89
bootReader();

0 commit comments

Comments
 (0)