mirror of
https://github.com/zadam/trilium.git
synced 2025-02-20 21:13:11 +08:00
disabling broken in page search
This commit is contained in:
parent
137ffcc4e3
commit
0019865807
2 changed files with 8 additions and 6 deletions
|
@ -62,7 +62,7 @@
|
|||
"tar-stream": "1.6.2",
|
||||
"turndown": "5.0.1",
|
||||
"unescape": "1.0.1",
|
||||
"ws": "6.1.0",
|
||||
"ws": "6.1.2",
|
||||
"xml2js": "0.4.19"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -97,12 +97,14 @@ function registerEntrypoints() {
|
|||
|
||||
$(document).bind('keydown', 'ctrl+f', () => {
|
||||
if (utils.isElectron()) {
|
||||
const searchInPage = require('electron-in-page-search').default;
|
||||
const remote = require('electron').remote;
|
||||
alert("In page search doesn't work in this beta");
|
||||
|
||||
const inPageSearch = searchInPage(remote.getCurrentWebContents());
|
||||
|
||||
inPageSearch.openSearchWindow();
|
||||
// const searchInPage = require('electron-in-page-search').default;
|
||||
// const remote = require('electron').remote;
|
||||
//
|
||||
// const inPageSearch = searchInPage(remote.getCurrentWebContents());
|
||||
//
|
||||
// inPageSearch.openSearchWindow();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue