📝 Update as upstream
[ci skip]
This commit is contained in:
parent
ec16c6a146
commit
efac12ed89
1 changed files with 4 additions and 0 deletions
|
@ -4,8 +4,12 @@ The `BrowserWindow` class gives you the ability to create a browser window. For
|
||||||
example:
|
example:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
// 메인 프로세스에서
|
||||||
const BrowserWindow = require('electron').BrowserWindow;
|
const BrowserWindow = require('electron').BrowserWindow;
|
||||||
|
|
||||||
|
// 또는 랜더러 프로세스에서
|
||||||
|
const BrowserWindow = require('electron').remote.BrowserWindow;
|
||||||
|
|
||||||
var win = new BrowserWindow({ width: 800, height: 600, show: false });
|
var win = new BrowserWindow({ width: 800, height: 600, show: false });
|
||||||
win.on('closed', function() {
|
win.on('closed', function() {
|
||||||
win = null;
|
win = null;
|
||||||
|
|
Loading…
Reference in a new issue