Merge branch 'develop' into gsouquet/fix-backdrop-filter
This commit is contained in:
commit
edae9a4844
736 changed files with 8122 additions and 7857 deletions
|
@ -28,12 +28,8 @@ export async function getDrawable(url: string): Promise<CanvasImageSource> {
|
|||
return new Promise<HTMLImageElement>((resolve, reject) => {
|
||||
const img = document.createElement("img");
|
||||
img.crossOrigin = "anonymous";
|
||||
img.onload = function() {
|
||||
resolve(img);
|
||||
}
|
||||
img.onerror = function(e) {
|
||||
reject(e);
|
||||
}
|
||||
img.onload = () => resolve(img);
|
||||
img.onerror = (e) => reject(e);
|
||||
img.src = url;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue