git ssb

2+

ev / mvd



Tree: 2a6b35370531e3a05a94bcd4039ab3367b9e5d6f

Files: 2a6b35370531e3a05a94bcd4039ab3367b9e5d6f / index.js

465 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
15console.log(src)
16
17if (src == 'raw') {
18 views.rawstream()
19} else if (ref.isFeed(src)) {
20 views.userstream(src)
21} else if (ref.isMsg(src)) {
22 views.get(src)
23} else {
24 views.logstream()
25}
26

Built with git-ssb-web