From 35b5f6dd0d3f39bdf87401169c41a449ef02cc9c Mon Sep 17 00:00:00 2001 From: Gasim Gasimzada Date: Fri, 10 Jan 2020 13:38:39 +0400 Subject: [PATCH] Fix a bug where clipboard object doesn't exist in Safari (#296) --- src/components/panels/PanelExport.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/panels/PanelExport.tsx b/src/components/panels/PanelExport.tsx index 8b924033..461aa9cf 100644 --- a/src/components/panels/PanelExport.tsx +++ b/src/components/panels/PanelExport.tsx @@ -27,6 +27,7 @@ const ClipboardIcon = () => ( const probablySupportsClipboard = "toBlob" in HTMLCanvasElement.prototype && + "clipboard" in navigator && "write" in navigator.clipboard && "ClipboardItem" in window;