diff --git a/app/renderer/components/navigation/urlBar.js b/app/renderer/components/navigation/urlBar.js index 5044c09cfef..b58e42b3a17 100644 --- a/app/renderer/components/navigation/urlBar.js +++ b/app/renderer/components/navigation/urlBar.js @@ -52,7 +52,6 @@ class UrlBar extends ImmutableComponent { this.urlInput.setSelectionRange(len, len + suffixLen) } }, 10) - this.onNoScript = this.onNoScript.bind(this) } get locationValueSuffix () { @@ -498,7 +497,7 @@ class UrlBar extends ImmutableComponent { } onNoScript () { - windowActions.setNoScriptVisible(!this.props.noScriptIsVisible) + windowActions.setNoScriptVisible() } onContextMenu (e) { @@ -568,12 +567,12 @@ class UrlBar extends ImmutableComponent { { !this.showNoScriptInfo ? null - : -