Compare commits

..

No commits in common. "58ac273f1f36b3d01b21f2a07b19f5884eca1b2a" and "f302323c7e6bc4e0f442ccbd716cfb3d68ff23a0" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -22,7 +22,7 @@ const MIN_IMAGE_DIM = 2048;
// In Chrome, there aren't max dimensions but only a max area. So an image with
// a very large dimensions is acceptable but it probably doesn't hurt to reduce
// it when considering that it will finally rendered on a small canvas.
const MAX_IMAGE_DIM = 32768;
const MAX_IMAGE_DIM = 65537;
const MAX_ERROR = 128;
// Large images are encoded in using the BMP format (it's a way faster than

View File

@ -319,9 +319,7 @@ class WorkerMessageHandler {
}
function onFailure(ex) {
if (terminated) {
return;
}
ensureNotTerminated();
if (ex instanceof PasswordException) {
const task = new WorkerTask(`PasswordException: response ${ex.code}`);