Electronjs Referenceerror: Navigator Is Not Defined
I'm trying make a custom titlebar on electron. But when i started my app, i take 'ReferenceError: navigator is not defined' issue. Please help. This is the code snippet from my mai
Solution 1:
This can't be executed in main process. The main process is for managing the renderer process. There won't be any navigator at Electron main process. And navigator is property of browser.
The renderer is responsible to render the code to browserWindow. So you can access the navigator of browserWindow at renderer not main.
So please move this to your renderer where you'd like to customize the title bar.
This will be working very well.
Post a Comment for "Electronjs Referenceerror: Navigator Is Not Defined"