mirror of
https://github.com/zadam/trilium.git
synced 2025-02-21 21:43:55 +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",
|
"tar-stream": "1.6.2",
|
||||||
"turndown": "5.0.1",
|
"turndown": "5.0.1",
|
||||||
"unescape": "1.0.1",
|
"unescape": "1.0.1",
|
||||||
"ws": "6.1.0",
|
"ws": "6.1.2",
|
||||||
"xml2js": "0.4.19"
|
"xml2js": "0.4.19"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -97,12 +97,14 @@ function registerEntrypoints() {
|
||||||
|
|
||||||
$(document).bind('keydown', 'ctrl+f', () => {
|
$(document).bind('keydown', 'ctrl+f', () => {
|
||||||
if (utils.isElectron()) {
|
if (utils.isElectron()) {
|
||||||
const searchInPage = require('electron-in-page-search').default;
|
alert("In page search doesn't work in this beta");
|
||||||
const remote = require('electron').remote;
|
|
||||||
|
|
||||||
const inPageSearch = searchInPage(remote.getCurrentWebContents());
|
// const searchInPage = require('electron-in-page-search').default;
|
||||||
|
// const remote = require('electron').remote;
|
||||||
inPageSearch.openSearchWindow();
|
//
|
||||||
|
// const inPageSearch = searchInPage(remote.getCurrentWebContents());
|
||||||
|
//
|
||||||
|
// inPageSearch.openSearchWindow();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue