mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
JSHint: Fix error
This commit is contained in:
parent
6c5f1dc671
commit
702ab748a2
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ module.exports = function(paper) {
|
||||||
exportImage: function(path, callback) {
|
exportImage: function(path, callback) {
|
||||||
this.update();
|
this.update();
|
||||||
var out = fs.createWriteStream(path),
|
var out = fs.createWriteStream(path),
|
||||||
format = /\.jp(e?)g$/.test(path) ? 'jpeg' : 'png'
|
format = /\.jp(e?)g$/.test(path) ? 'jpeg' : 'png',
|
||||||
stream = this._element[format + 'Stream']();
|
stream = this._element[format + 'Stream']();
|
||||||
stream.pipe(out);
|
stream.pipe(out);
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
|
Loading…
Reference in a new issue