Skip to content

Commit

Permalink
Force 100% load event when done. Fixes #69.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jan 9, 2014
1 parent 4408287 commit 4bcfeb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/io/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ dwv.io.File.prototype.load = function(ioArray)
} catch(error) {
onerror(error);
}
// force 100% progress (sometimes with firefox)
var endEvent = new ProgressEvent("progress", {lengthComputable: true, loaded: 1, total: 1});
dwv.gui.updateProgress(endEvent);
};

// Image loader
Expand Down

0 comments on commit 4bcfeb8

Please sign in to comment.