Commit 0d9b44b8f8b24b2c8bce341d3b10f76dbd2cb75b
simplify connection status classes
Dominic Tarr committed on 7/22/2016, 9:13:36 AMParent: 03187b9dad071577947968b89b9c6aef6d6c4d41
Files changed
modules/app.js | changed |
modules/app.js | ||
---|---|---|
@@ -5,17 +5,10 @@ | ||
5 | 5 | |
6 | 6 | var status = h('div.status') |
7 | 7 | |
8 | 8 | exports.connection_status = function (err) { |
9 | - console.log('STATUS', err) | |
10 | - if(err) { | |
11 | - status.classList.remove('ready') | |
12 | - status.classList.add('error') | |
13 | - } | |
14 | - else { | |
15 | - status.classList.remove('error') | |
16 | - status.classList.add('ready') | |
17 | - } | |
9 | + if(err) status.classList.add('error') | |
10 | + else status.classList.remove('error') | |
18 | 11 | } |
19 | 12 | |
20 | 13 | exports.app = function () { |
21 | 14 | function hash() { |
@@ -43,4 +36,12 @@ | ||
43 | 36 | |
44 | 37 | |
45 | 38 | |
46 | 39 | |
40 | + | |
41 | + | |
42 | + | |
43 | + | |
44 | + | |
45 | + | |
46 | + | |
47 | + |
Built with git-ssb-web