mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed renderer's provider
This commit is contained in:
parent
659cfeb71c
commit
2cf92a52cf
1 changed files with 2 additions and 1 deletions
|
@ -75,10 +75,11 @@ export const getStickersPlacement = () => (
|
|||
}))
|
||||
);
|
||||
|
||||
const getImageSource = coords => replaceProviderUrl(editor.provider, coords);
|
||||
const getImageSource = coords => replaceProviderUrl(editor.getProvider(), coords);
|
||||
|
||||
export const imageFetcher = source => new Promise((resolve, reject) => {
|
||||
const img = new Image();
|
||||
|
||||
img.crossOrigin = 'anonymous';
|
||||
img.onload = () => resolve(img);
|
||||
img.onerror = () => reject(img);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue