diff options
| -rw-r--r-- | public/js/calculator.coffee | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index 505a1a09..8c129cd0 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -52,12 +52,13 @@ setup = -> g.commission or= 0 g.symbol or= 'virtexCAD' + if g.title + $('#title').html(g.title).show() + if g.logo $('#logo').attr('src', g.logo).show() - else if not g.title + else unless g.title $('#logo').attr('src', 'img/bitcoin.png').show() - else - $('#title').html(g.title).show() address = g.address if g.user? and g.user |
