Fix lint warnings in documentations

This commit is contained in:
Cheng Zhao 2016-08-03 10:15:38 +09:00
parent d8a030fa9b
commit ba9aa13bd8
2 changed files with 18 additions and 17 deletions

View file

@ -480,7 +480,7 @@ Emitted when a new frame is generated. Only the dirty area is passed in the
buffer.
```javascript
const {BrowserWindow} = require('electron');
const {BrowserWindow} = require('electron')
let win = new BrowserWindow({
width: 800,
@ -488,12 +488,12 @@ let win = new BrowserWindow({
webPreferences: {
offscreen: true
}
});
win.loadURL('http://github.com');
})
win.loadURL('http://github.com')
win.webContents.on('paint', (event, dirty, data) => {
updateBitmap(dirty, data);
});
// updateBitmap(dirty, data)
})
```
### Instance Methods