aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_browser.js')
-rw-r--r--src/library_browser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index b733bfbd..55de7a5c 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -33,7 +33,7 @@ mergeInto(LibraryManager.library, {
}
var image = new Image();
image.src = 'data:image/' + format + ';base64,' + encodeBase64(pixels);
- assert(image.complete, 'Image could not be decoded'); // page reload might fix it, decoding is async...
+ assert(image.complete, 'Image could not be decoded'); // page reload might fix it, decoding is async... need .onload handler...
var canvas = document.createElement('canvas');
canvas.width = image.width;
canvas.height = image.height;