From e42252507bb2307f8211fb5d4ce993a2da1a277f Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sun, 30 Apr 2017 04:06:50 -0400 Subject: [PATCH] Minor style fixes --- ui/js/component/header.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/ui/js/component/header.js b/ui/js/component/header.js index aadcf7cd2..b05246036 100644 --- a/ui/js/component/header.js +++ b/ui/js/component/header.js @@ -98,9 +98,9 @@ let WunderBar = React.createClass({ } // this._input.value = ""; //trigger placeholder this._focusPending = true; - if (!this.state.address.match(/^lbry:\/\//)) //onFocus, if they are not on an exact URL, clear the bar + if (!this.state.address.startsWith('lbry://')) //onFocus, if they are not on an exact URL, clear the bar { - newState.address = ""; + newState.address = ''; } this.setState(newState); }, @@ -119,16 +119,18 @@ let WunderBar = React.createClass({ this._input = ref; }, render: function() { - return
- {this.state.icon ? : '' } - + return ( +
+ {this.state.icon ? : '' } +
+ ); } })