From e8713f34aed55e611b95a29eb77e7417d7432200 Mon Sep 17 00:00:00 2001 From: Quentin Leonetti Date: Thu, 18 Jul 2019 12:04:04 +0200 Subject: [PATCH] remove useless log and add async where needed --- desktop/sources/scripts/library.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop/sources/scripts/library.js b/desktop/sources/scripts/library.js index dd0ea70..ba5922d 100644 --- a/desktop/sources/scripts/library.js +++ b/desktop/sources/scripts/library.js @@ -244,7 +244,6 @@ function Library (ronin) { const b = document.createElement('img') a.src = ronin.surface.el.toDataURL() await ronin.surface.resizeImage(a, b) - console.log(b) ronin.surface.resize(rect, fit) return ronin.surface.draw(b, rect) } @@ -254,7 +253,7 @@ function Library (ronin) { const a = document.createElement('img') const b = document.createElement('img') a.src = ronin.surface.el.toDataURL() - ronin.surface.resizeImage(a, b) + await ronin.surface.resizeImage(a, b) ronin.surface.resize(rect, true) return ronin.surface.draw(b, rect) }