Files: 22845e6da7a120adb2b33163b4a7f46979fcc97b / index.js
419 bytesRaw
1 | var h = require('hyperscript') |
2 | |
3 | var views = require('./views') |
4 | |
5 | var ref = require('ssb-ref') |
6 | |
7 | document.head.appendChild(h('style', require('./style.css.json'))) |
8 | |
9 | var src = window.location.hash.substring(1) |
10 | |
11 | window.onhashchange = function () { |
12 | window.location.reload() |
13 | } |
14 | |
15 | console.log(src) |
16 | |
17 | if (src == 'raw') { |
18 | views.rawstream() |
19 | } else if (ref.isFeed(src)) { |
20 | views.userstream(src) |
21 | } else { |
22 | views.logstream() |
23 | } |
24 |
Built with git-ssb-web