guarantee async behaviour when creating thumbnails

pull/1/head
ansuz 3 years ago
parent 2799a69b3a
commit 86f23dcfc0

@ -196,7 +196,7 @@ define([
reader.readAsText(blob); reader.readAsText(blob);
}; };
Thumb.fromBlob = function (blob, _cb) { Thumb.fromBlob = function (blob, _cb) {
var cb = Util.once(_cb); var cb = Util.once(Util.mkAsync(_cb));
// The blob is already in memory, it should be super-fast to make a thumbnail // The blob is already in memory, it should be super-fast to make a thumbnail
// ==> 1s timeout // ==> 1s timeout
setTimeout(function () { setTimeout(function () {

Loading…
Cancel
Save