fix: hardened image-done handling with visible errors; plain-text translation; mobile menu no-icons truncation
This commit is contained in:
parent
094de9ebd1
commit
118c6cfb64
1 changed files with 5 additions and 1 deletions
|
|
@ -1269,7 +1269,11 @@ import {
|
||||||
lastGeneratedImageSrc = job.imageUrl;
|
lastGeneratedImageSrc = job.imageUrl;
|
||||||
exporter.invalidate();
|
exporter.invalidate();
|
||||||
loadImageGallery();
|
loadImageGallery();
|
||||||
|
try {
|
||||||
if (typeof hooks.onDone === 'function') hooks.onDone(job.imageUrl); else openImagePreview(job.imageUrl);
|
if (typeof hooks.onDone === 'function') hooks.onDone(job.imageUrl); else openImagePreview(job.imageUrl);
|
||||||
|
} catch (doneError) {
|
||||||
|
if (typeof hooks.onError === 'function') hooks.onError('Image ready: ' + String(doneError && doneError.message));
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (job.status === 'error' || job.status === 'interrupted') {
|
if (job.status === 'error' || job.status === 'interrupted') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue