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