Fix a bug where clipboard object doesn't exist in Safari (#296)
This commit is contained in:
parent
2fb3cdd5e4
commit
35b5f6dd0d
@ -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…
x
Reference in New Issue
Block a user