Replace io.js references with node.js references
This commit is contained in:
parent
87e0c812e9
commit
c3cd438d34
3 changed files with 7 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
||||||
:zap: *Formerly known as Atom Shell* :zap:
|
:zap: *Formerly known as Atom Shell* :zap:
|
||||||
|
|
||||||
The Electron framework lets you write cross-platform desktop applications
|
The Electron framework lets you write cross-platform desktop applications
|
||||||
using JavaScript, HTML and CSS. It is based on [io.js](http://iojs.org) and
|
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org) and
|
||||||
[Chromium](http://www.chromium.org) and is used in the [Atom
|
[Chromium](http://www.chromium.org) and is used in the [Atom
|
||||||
editor](https://github.com/atom/atom).
|
editor](https://github.com/atom/atom).
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ Returns a boolean whether the image is empty.
|
||||||
|
|
||||||
Returns the size of the image.
|
Returns the size of the image.
|
||||||
|
|
||||||
[buffer]: https://iojs.org/api/buffer.html#buffer_class_buffer
|
[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer
|
||||||
|
|
||||||
### `image.setTemplateImage(option)`
|
### `image.setTemplateImage(option)`
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Electron enables you to create desktop applications with pure JavaScript by
|
Electron enables you to create desktop applications with pure JavaScript by
|
||||||
providing a runtime with rich native (operating system) APIs. You could see it
|
providing a runtime with rich native (operating system) APIs. You could see it
|
||||||
as a variant of the io.js runtime that is focused on desktop applications
|
as a variant of the Node.js runtime that is focused on desktop applications
|
||||||
instead of web servers.
|
instead of web servers.
|
||||||
|
|
||||||
This doesn't mean Electron is a JavaScript binding to graphical user interface
|
This doesn't mean Electron is a JavaScript binding to graphical user interface
|
||||||
|
@ -22,8 +22,9 @@ multi-process architecture is also used. Each web page in Electron runs in
|
||||||
its own process, which is called __the renderer process__.
|
its own process, which is called __the renderer process__.
|
||||||
|
|
||||||
In normal browsers, web pages usually run in a sandboxed environment and are not
|
In normal browsers, web pages usually run in a sandboxed environment and are not
|
||||||
allowed access to native resources. Electron users, however, have the power to use
|
allowed access to native resources. Electron users, however, have the power to
|
||||||
io.js APIs in web pages allowing lower level operating system interactions.
|
use Node.js APIs in web pages allowing lower level operating system
|
||||||
|
interactions.
|
||||||
|
|
||||||
### Differences Between Main Process and Renderer Process
|
### Differences Between Main Process and Renderer Process
|
||||||
|
|
||||||
|
@ -129,7 +130,7 @@ Finally the `index.html` is the web page you want to show:
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Hello World!</h1>
|
<h1>Hello World!</h1>
|
||||||
We are using io.js <script>document.write(process.version)</script>
|
We are using Node.js <script>document.write(process.version)</script>
|
||||||
and Electron <script>document.write(process.versions['electron'])</script>.
|
and Electron <script>document.write(process.versions['electron'])</script>.
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue