git ssb

16+

Dominic / patchbay



Tree: f282bf4a9ac0e60ba0de219dad5704df86000ec5

Files: f282bf4a9ac0e60ba0de219dad5704df86000ec5 / app / sync / initialise / styles.js

452 bytesRaw
1const nest = require('depnest')
2const insertCss = require('insert-css')
3
4exports.gives = nest('app.sync.initialise')
5
6exports.needs = nest({
7 'styles.css': 'reduce',
8})
9
10
11exports.create = function (api) {
12 return nest('app.sync.initialise', styles)
13
14 function styles () {
15 const css = values(api.styles.css()).join('\n')
16 insertCss(css)
17 }
18}
19
20function values (object) {
21 const keys = Object.keys(object)
22 return keys.map(k => object[k])
23}
24
25

Built with git-ssb-web