Preload: nodePath.join(_dirname, 'preload.js') This option should be used when loading potentially untrusted remote content to ensure the loaded content cannot tamper with the preload script and any Electron APIs being used. x Integer ( required if y is used) - Window's left offset from screen. height Integer - Window's height in pixels. new BrowserWindow ( options) options Object width Integer - Window's width in pixels. You can take advantage of all the customization available when creating a. It is only available as a return value of other methods in the Electron API. The Electron API will only be available in the preload script and not the loaded page. It creates a new BrowserWindow with native properties as set by the options. Main.js (main thread) const electronApp = require('electron').app Ĭonst electronBrowserWindow = require('electron').BrowserWindow Ĭonst electronIpcMain = require('electron').ipcMain Electron pairs this native Chrome Window with a BrowserWindow under the hood. Fossies Dox: electron-20.3.0.tar. Moving between window sources, whether it be local (file) or remote (URL) can be accomplished by just calling window.loadFile(.) or window.loadURL(.), but only after the instance of the window has been created. About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |