From efac12ed89258e9b18041313965df53efc05a82b Mon Sep 17 00:00:00 2001 From: Plusb Preco Date: Fri, 11 Dec 2015 14:26:01 +0900 Subject: [PATCH] :memo: Update as upstream [ci skip] --- docs/api/browser-window.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 2fbd1544c3ef..00ea09bf9648 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -4,8 +4,12 @@ The `BrowserWindow` class gives you the ability to create a browser window. For example: ```javascript +// 메인 프로세스에서 const BrowserWindow = require('electron').BrowserWindow; +// 또는 랜더러 프로세스에서 +const BrowserWindow = require('electron').remote.BrowserWindow; + var win = new BrowserWindow({ width: 800, height: 600, show: false }); win.on('closed', function() { win = null;