mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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) {
|
||||
this.update();
|
||||
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.pipe(out);
|
||||
if (callback) {
|
||||
|
|
Loading…
Reference in a new issue