Where is 'new BrowserWindow()' in Angular Electron application

Discussão em 'Angular' iniciado por Viacheslav, Dezembro 10, 2024.

  1. Viacheslav

    Viacheslav Guest

    I try to rewrite some apps to Electron (with Angular), but first question I faced is - "where is new BrowserWindow" function? I need modify this function, for example change "contextIsolation", allow to open DevTools and other features.

    This is Angular, and I can not even clearly locate place of this function. I use Windows, my current project folder is E:\Angular\AngularElectron\AngularElectron, and Elecron engine unexpectedly started from folder E:\Angular\node-modules... despite I clearly install Electron as

    npm install --save-dev electron


    And Electron engine started as EXE file.

    [​IMG]

    Electron started as

    npx electron


    But I can not understand - where is function 'new BrowserWindow()' (I have modified it when I worked with Electron without Angular). And I can not understand how I can open DevTools in this case, in my previous application with Electron I have opened DevTools and can see various troubles of my application in DevTools, for example

    [​IMG]

    But now, with Angular, I can not see anything (because DevTools disabled) and even can not found function where main Windows has created. Can anybody explain me this troubles?

    Continue reading...

Compartilhe esta Página