git ssb

16+

Dominic / patchbay



Tree: e44d1090738a1f2de11a91d4eb82926eeb8dcb86

Files: e44d1090738a1f2de11a91d4eb82926eeb8dcb86 / index.js

819 bytesRaw
1var h = require('hyperscript')
2
3window.addEventListener('error', window.onError = function (e) {
4 document.body.appendChild(h('div.error',
5 h('h1', e.message),
6 h('big', h('code', e.filename + ':' + e.lineno)),
7 h('pre', e.error ? (e.error.stack || e.error.toString()) : e.toString())))
8})
9
10var u = require('./util')
11var pull = require('pull-stream')
12var combine = require('depject')
13var fs = require('fs')
14var path = require('path')
15var SbotApi = require('./sbot-api')
16
17document.head.appendChild(h('style', require('./style.css.json')))
18
19var modules = require('./modules')
20
21var u = require('./util')
22
23modules['sbot-api.js'] = SbotApi()
24combine(modules)
25
26if(process.title === 'node') {
27 console.log(require('depject/graph')(modules))
28 process.exit(0)
29}
30
31document.body.appendChild(modules['app.js'].app())
32
33
34

Built with git-ssb-web