Files: 55335207126eb15c3a0f1834ffb8bbcbd32658a8 / app / html / app.js
420 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.html.app') |
5 | |
6 | exports.needs = nest({ |
7 | 'app.html.tabs': 'first', |
8 | 'settings.sync.get': 'first' |
9 | }) |
10 | |
11 | exports.create = function (api) { |
12 | return nest('app.html.app', app) |
13 | |
14 | function app (initialTabs) { |
15 | return h('App', api.app.html.tabs({ |
16 | initial: initialTabs || api.settings.sync.get('patchbay.defaultTabs') |
17 | })) |
18 | } |
19 | } |
20 |
Built with git-ssb-web