Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fix syntax and clear highlight on findbar close
Browse files Browse the repository at this point in the history
Auditors: @jkup
  • Loading branch information
bbondy committed Aug 25, 2016
1 parent 3bec3be commit fc7767f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/actions/webviewActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const webviewActions = {
}
},

findInPage (searchString, caseSensitivity, forward, webview) {
findInPage: function (searchString, caseSensitivity, forward, webview) {
webview = webview || getWebview()
if (!webview) {
return
Expand All @@ -100,7 +100,7 @@ const webviewActions = {
}
},

stopFindInPage (webview) {
stopFindInPage: function (webview) {
webview = webview || getWebview()
if (!webview) {
return
Expand Down
1 change: 1 addition & 0 deletions js/components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ class Main extends ImmutableComponent {
onFindHide () {
const activeFrame = FrameStateUtil.getActiveFrame(this.props.windowState)
windowActions.setFindbarShown(activeFrame, false)
webviewActions.stopFindInPage()
}

onFind (searchString, caseSensitivity, forward) {
Expand Down

0 comments on commit fc7767f

Please sign in to comment.