📝 Match destructuring style

[ci skip]
This commit is contained in:
Plusb Preco 2016-05-11 01:26:38 +09:00
parent 5787bb0226
commit 4d7296e1db
24 changed files with 37 additions and 39 deletions

View file

@ -71,7 +71,7 @@ require('/path/to/example.asar/dir/module.js');
You can also display a web page in an `asar` archive with `BrowserWindow`:
```javascript
const { BrowserWindow } = require('electron');
const {BrowserWindow} = require('electron');
let win = new BrowserWindow({width: 800, height: 600});
win.loadURL('file:///path/to/example.asar/static/index.html');
```

View file

@ -209,7 +209,7 @@ You can use [BrowserWindow.setThumbarButtons][setthumbarbuttons] to set
thumbnail toolbar in your application:
```javascript
const { BrowserWindow } = require('electron');
const {BrowserWindow} = require('electron');
const path = require('path');
let win = new BrowserWindow({

View file

@ -71,7 +71,7 @@ _online-status.html_
<html>
<body>
<script>
const { ipcRenderer } = require('electron');
const {ipcRenderer} = require('electron');
const updateOnlineStatus = () => {
ipcRenderer.send('online-status-changed', navigator.onLine ? 'online' : 'offline');
};