![]() This is because the Renderer process is simply a running Chromium browser instance. Out of the box, the Renderer process only has access to browser APIs like the window and document objects, etc. A Renderer process can also be terminated from the Main process by destroying its BrowserWindow instance. ![]() Thus, if one Renderer process terminates, it does not affect another Renderer process. You can then create more screens if your application requires it.Įach Renderer process manages its own web page and is completely isolated from other Renderer processes and the Main process itself. Typically, Electron.js applications boot up with a default web page which is the app’s startup screen. The Main process can create more than one web page each running in its own Renderer process. This creates a new web page that runs in its own Renderer process. It does this by creating a new instance of the Electron.js BrowserWindow object. The Main process is responsible for creating web pages. Custom APIs: To enable developers to create common desktop experiences and work easily with native functionalities, Electron.js has an API of easy to use libraries that help you perform tasks like creating and showing a context menu, displaying desktop notifications, working with keyboard shortcuts, etc.Ī running Electron.js app maintains two types of processes, the Main process, and one or more Renderer processes.The entry point is teh Main process. Electron.js runs Node.js in its Main process (more on this later) giving you access to all that Node.js offers like interacting with the filesystem, operating system, etc. Node.js: This is the component in the Electron.js structure that gives you access to system capabilities. Web content is displayed in Electron.js’s Renderer process (more on this later) and due to the Chromium environment, you have access to all browser APIs and development tools just like operating in a typical Google Chrome browser. ![]() Chromium: This is the component in the Electron.js structure that is responsible for creating and displaying web pages. ![]() I was thinking of making a tutorial about this.Let's get into it. Did you know that you can make a desktop app with javascript?There's a js framework for this named electron.js.
0 Comments
Leave a Reply. |