Skip to content

Commit 593abec

Browse files
committed
Add previous/next icons to header nav.
1 parent afa394d commit 593abec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const title = 'W3C API';
1515
const port = 8080;
1616

1717
const app = new Application();
18-
app.use(browser({title}));
18+
app.use(browser({title, navigationLinks: {
19+
previous: {priority: -1}, next: {priority: 1}}}));
1920
app.use(async ctx => {
2021
console.dir(ctx.request.requestTarget);
2122
if(ctx.request.requestTarget === '/') {

0 commit comments

Comments
 (0)