Skip to content

Commit 9a9e843

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 829fb95 + ae382e0 commit 9a9e843

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

website/src/styles/asciidoctor-scoped.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
/* Base typography */
1111
background: #fff;
1212
color: rgba(0, 0, 0, 0.8);
13-
font-family: 'Noto Serif', 'DejaVu Serif', serif;
1413
line-height: 1.6;
1514

1615
& * {

website/src/utils/router.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function handleRoute() {
5656

5757
// Navigate to home first
5858
const homeHandler = routes.get('/')
59-
if (homeHandler) {
59+
if (typeof homeHandler === 'function') {
6060
currentRoute = '/'
6161
homeHandler()
6262
}
@@ -70,13 +70,13 @@ function handleRoute() {
7070

7171
const handler = routes.get(path)
7272

73-
if (handler) {
73+
if (typeof handler === 'function') {
7474
currentRoute = path
7575
handler()
7676
} else {
7777
// Default to home if route not found
7878
const homeHandler = routes.get('/')
79-
if (homeHandler) {
79+
if (typeof homeHandler === 'function') {
8080
currentRoute = '/'
8181
homeHandler()
8282
}

0 commit comments

Comments
 (0)