Added ending semicolon for consistency.
This commit is contained in:
parent
9a0a10e766
commit
582a42f97c
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ returns a `Buffer` by calling the passed callback:
|
||||||
var remote = require('remote');
|
var remote = require('remote');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
remote.getCurrentWindow().capturePage(function(image) {
|
remote.getCurrentWindow().capturePage(function(image) {
|
||||||
var buf = image.toPng()
|
var buf = image.toPng();
|
||||||
fs.writeFile('/tmp/screenshot.png', buf, function(err) {
|
fs.writeFile('/tmp/screenshot.png', buf, function(err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
@ -117,7 +117,7 @@ The work-around is to write the `buf` in the main process, where it is a real
|
||||||
```javascript
|
```javascript
|
||||||
var remote = require('remote');
|
var remote = require('remote');
|
||||||
remote.getCurrentWindow().capturePage(function(image) {
|
remote.getCurrentWindow().capturePage(function(image) {
|
||||||
var buf = image.toPng()
|
var buf = image.toPng();
|
||||||
remote.require('fs').writeFile('/tmp/screenshot.png', buf, function(err) {
|
remote.require('fs').writeFile('/tmp/screenshot.png', buf, function(err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue