Skip to content

Commit

Permalink
#33 Fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
akabekobeko committed Jun 22, 2016
1 parent 89189c1 commit 1d9b9d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import { CLIConstatns } from '../bin/cli-util.js';
*/
module.exports = function( src, dest, options = { type: CLIConstatns.types.svg, modes: CLIConstatns.modeAll, report: false } ) {
const logger = new Logger( options.report );

const opt = options;
if( !( opt.modes ) ) {
opt.modes = CLIConstatns.modeAll;
}

switch( options.type ) {
case CLIConstatns.types.png:
return IconGenerator.fromPNG( src, dest, options.modes, logger );
Expand Down

0 comments on commit 1d9b9d5

Please sign in to comment.