Skip to content

Commit

Permalink
Default info on SVGO.optimize API
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry authored and GreLI committed Oct 30, 2019
1 parent 58232a3 commit 99d9c3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/svgo.js
Expand Up @@ -22,6 +22,7 @@ var SVGO = function(config) {
};

SVGO.prototype.optimize = function(svgstr, info) {
info = info || {};
return new Promise((resolve, reject) => {
if (this.config.error) {
reject(this.config.error);
Expand Down

0 comments on commit 99d9c3c

Please sign in to comment.