angular-electron
angular-electron copied to clipboard
How to setup findInPage?
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?