Electron - How to know when renderer window is ready

后端 未结 6 1205
执笔经年
执笔经年 2021-01-17 07:47

In my main process I create a renderer window:

var mainWindow = new BrowserWindow({
    height: 600,
    width: 800,
    x: 0,
    y: 0,
    frame: false,
           


        
6条回答
  •  佛祖请我去吃肉
    2021-01-17 08:26

    not mentioned in the previous answers, loadURL returns a promise that resolves at the same time the 'did-finish-load' event is fired; i.e., they're essentially equivalent, except one's a promise, and the other's a callback.

提交回复
热议问题