mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix a bug where clipboard object doesn't exist in Safari (#296)
This commit is contained in:
parent
2fb3cdd5e4
commit
35b5f6dd0d
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ const ClipboardIcon = () => (
|
||||||
|
|
||||||
const probablySupportsClipboard =
|
const probablySupportsClipboard =
|
||||||
"toBlob" in HTMLCanvasElement.prototype &&
|
"toBlob" in HTMLCanvasElement.prototype &&
|
||||||
|
"clipboard" in navigator &&
|
||||||
"write" in navigator.clipboard &&
|
"write" in navigator.clipboard &&
|
||||||
"ClipboardItem" in window;
|
"ClipboardItem" in window;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue