git ssb

16+

Dominic / patchbay



Tree: 47f9ac92e1cabfef73b71fea878e805a70994e87

Files: 47f9ac92e1cabfef73b71fea878e805a70994e87 / router / html / page / errors.js

488 bytesRaw
1const nest = require('depnest')
2
3exports.gives = nest('router.html.page')
4
5exports.needs = nest({
6 'main.html.scroller': 'first'
7})
8
9exports.create = function (api) {
10 return nest('router.html.page', errorsPage)
11
12 function errorsPage (path) {
13 if (path !== '/errors') return
14
15 var { container, content } = api.main.html.scroller()
16
17 container.id = '/errors'
18 container.classList = ['-errors']
19
20 // add a dummy entry in the list
21
22 return { container, content }
23 }
24}
25
26

Built with git-ssb-web