angular-electron icon indicating copy to clipboard operation
angular-electron copied to clipboard

How to setup findInPage?

Open esenkus opened this issue 2 years ago • 0 comments

Hello, I'm running into multiple issues trying to setup electrons findInPage functionality. Are there any up to date guides on this? Main issue I'm having is getting BrowserWindow.getFocusedWindow() as we no longer have electron.remote and simply trying to use

const win = Electron.BrowserWindow.getFocusedWindow();

this returns undefined for Electron or for getFocusedWindow if I import BrowserWindow manually like

import { BrowserWindow} from 'electron';

const win = BrowserWindow.getFocusedWindow();

How could I implement a simple search functionality?

esenkus avatar Aug 28 '23 12:08 esenkus