mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	disabling broken in page search
This commit is contained in:
		@@ -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;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user