mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: handle unhandled promise rejections (#2568)
This commit is contained in:

committed by
GitHub

parent
382853cb33
commit
4555940d0b
@ -87,7 +87,9 @@ export class Cache {
|
||||
}
|
||||
|
||||
if (isBlobImage(src) || isRenderable(src)) {
|
||||
this._cache[src] = this.loadImage(src);
|
||||
(this._cache[src] = this.loadImage(src)).catch(() => {
|
||||
// prevent unhandled rejection
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user