Files: 47f9ac92e1cabfef73b71fea878e805a70994e87 / router / html / page / errors.js
488 bytesRaw
1 | const nest = require('depnest') |
2 | |
3 | exports.gives = nest('router.html.page') |
4 | |
5 | exports.needs = nest({ |
6 | 'main.html.scroller': 'first' |
7 | }) |
8 | |
9 | exports.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