From 36d578f1fb7e14a3ef573052236396d4edff0c65 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Wed, 22 Feb 2017 20:54:37 +0700 Subject: [PATCH] Keep XO happy --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index dbc70c6..914afe6 100644 --- a/src/index.js +++ b/src/index.js @@ -13,8 +13,8 @@ const mergeImages = (sources = [], options = {}) => new Promise(resolve => { // Setup browser/node specific variables const canvas = options.Canvas ? new options.Canvas() : window.document.createElement('canvas'); const Image = options.Canvas ? options.Canvas.Image : window.Image; - if(options.Canvas) { - options.quality = options.quality * 100; + if (options.Canvas) { + options.quality *= 100; } // Load sources