git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: 8397cee5bd7b17b9f2ebf584813ed0c0a035023d

Files: 8397cee5bd7b17b9f2ebf584813ed0c0a035023d / main-window.js

634 bytesRaw
1var insertCss = require('insert-css')
2
3module.exports = function (config) {
4 var modules = require('depject')(
5 overrideConfig(config),
6 require('patchbay/modules_extra'),
7 require('patchbay/modules_basic'),
8 require('patchbay/modules_core'),
9 require('./modules')
10 )
11
12 process.nextTick(() => {
13 insertCss(modules.styles[0]() + require('./styles'))
14 })
15
16 return modules.app[0]()
17}
18
19function overrideConfig (config) {
20 return {
21 config: {
22 gives: {'config': true},
23 create: function (api) {
24 return {
25 config () {
26 return config
27 }
28 }
29 }
30 }
31 }
32}
33

Built with git-ssb-web