diff --git a/README.md b/README.md index 022b42a..c2e3e72 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ This is a minimal Electron application based on the [Quick Start Guide](http://e A basic Electron application needs just these files: -- `index.html` - A web page to render. -- `main.js` - Starts the app and creates a browser window to render HTML. - `package.json` - Points to the app's main file and lists its details and dependencies. +- `main.js` - Starts the app and creates a browser window to render HTML. This is the app's **main process**. +- `index.html` - A web page to render. This is the app's **renderer process**. You can learn more about each of these components within the [Quick Start Guide](http://electron.atom.io/docs/latest/tutorial/quick-start). diff --git a/index.html b/index.html index 1554374..7bbf746 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,14 @@

Hello World!

+ We are using node , Chromium , and Electron . + + diff --git a/main.js b/main.js index a9b3175..b230ec4 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,3 @@ -'use strict'; - const electron = require('electron'); // Module to control application life. const app = electron.app; @@ -31,6 +29,7 @@ function createWindow () { // This method will be called when Electron has finished // initialization and is ready to create browser windows. +// Some APIs can only be used after this event occurs. app.on('ready', createWindow); // Quit when all windows are closed. @@ -49,3 +48,6 @@ app.on('activate', function () { createWindow(); } }); + +// In this file you can include the rest of your app's specific main process +// code. You can also put them in separate files and require them here. diff --git a/package.json b/package.json index b81ae5f..495e48e 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,6 @@ }, "homepage": "https://github.com/electron/electron-quick-start#readme", "devDependencies": { - "electron-prebuilt": "^0.37.0" + "electron-prebuilt": "^0.37.7" } } diff --git a/renderer.js b/renderer.js new file mode 100644 index 0000000..901d75e --- /dev/null +++ b/renderer.js @@ -0,0 +1,3 @@ +// This file is required by the index.html file and will +// be executed in the renderer process for that window. +// All of the Node.js APIs are available in this process.