mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: support copying PNG to clipboard on Safari (#3746)
This commit is contained in:
parent
77d789ed8e
commit
cb6b7559b4
4 changed files with 53 additions and 8 deletions
12
src/utils.ts
12
src/utils.ts
|
@ -625,3 +625,15 @@ export const getFrame = () => {
|
|||
return "iframe";
|
||||
}
|
||||
};
|
||||
|
||||
export const isPromiseLike = (
|
||||
value: any,
|
||||
): value is Promise<ResolutionType<typeof value>> => {
|
||||
return (
|
||||
!!value &&
|
||||
typeof value === "object" &&
|
||||
"then" in value &&
|
||||
"catch" in value &&
|
||||
"finally" in value
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue