Commit d722ee9ed13150208b5992caafe81eac10f525a9
fix styles
Ev Bogue committed on 1/12/2017, 2:36:18 AMParent: b7406ac4b3aee684884de5d6727c256e3e26f199
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -12,8 +12,10 @@ | ||
12 | 12 … | var liteURL = 'http://ssb.evbogue.com/' |
13 | 13 … | var opts = {"modern":true,} |
14 | 14 … | var lite; |
15 | 15 … | |
16 … | +var style = fs.readFileSync(__dirname + '/style.css', 'utf8') | |
17 … | + | |
16 | 18 … | exports.name = 'viewer' |
17 | 19 … | exports.manifest = {} |
18 | 20 … | exports.version = require('./package').version |
19 | 21 … | |
@@ -33,10 +35,10 @@ | ||
33 | 35 … | function gotPost() { |
34 | 36 … | res.end( |
35 | 37 … | h('html', |
36 | 38 … | h('head', |
37 | - h('title', title) | |
38 | - // h('style', fs.readFileSync('style.css', 'utf8')) | |
39 … | + h('title', title), | |
40 … | + h('style', style) | |
39 | 41 … | ), |
40 | 42 … | h('body', |
41 | 43 … | h('div.msg', |
42 | 44 … | h('script', {src: viewerUrl + encodeURI(post.key) + '.js'}) |
Built with git-ssb-web