git ssb

2+

ev / mvd



Tree: adba9023ae4654a5353ad463f283c1d414881e32

Files: adba9023ae4654a5353ad463f283c1d414881e32 / index.js

447 bytesRaw
1var h = require('hyperscript')
2
3var views = require('./views')
4
5var ref = require('ssb-ref')
6
7document.head.appendChild(h('style', require('./style.css.json')))
8
9var src = window.location.hash.substring(1)
10
11window.onhashchange = function () {
12 window.location.reload()
13}
14
15if (src == 'raw') {
16 views.rawstream()
17} else if (ref.isFeed(src)) {
18 views.userstream(src)
19} else if (ref.isMsg(src)) {
20 views.get(src)
21} else {
22 views.logstream()
23}
24

Built with git-ssb-web