diff --git a/electron/exposes/search/index.js b/electron/exposes/search/index.js index e68c5cc3..f39e9ebf 100644 --- a/electron/exposes/search/index.js +++ b/electron/exposes/search/index.js @@ -16,9 +16,12 @@ export default () => { } function close() { + remote.getCurrentWebContents().stopFindInPage('clearSelection') + if (!findInPage) { return false } + return findInPage.closeFindWindow() } @@ -62,6 +65,8 @@ export default () => { : {}), }) + console.log('findInPage', findInPage) + return findInPage } diff --git a/src/components/AppSearch/index.vue b/src/components/AppSearch/index.vue index be95168f..474e94d7 100644 --- a/src/components/AppSearch/index.vue +++ b/src/components/AppSearch/index.vue @@ -15,7 +15,7 @@