mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 04:44:31 +01:00 
			
		
		
		
	Fix a bug where clipboard object doesn't exist in Safari (#296)
This commit is contained in:
		
				
					committed by
					
						
						David Luzar
					
				
			
			
				
	
			
			
			
						parent
						
							2fb3cdd5e4
						
					
				
				
					commit
					35b5f6dd0d
				
			@@ -27,6 +27,7 @@ const ClipboardIcon = () => (
 | 
			
		||||
 | 
			
		||||
const probablySupportsClipboard =
 | 
			
		||||
  "toBlob" in HTMLCanvasElement.prototype &&
 | 
			
		||||
  "clipboard" in navigator &&
 | 
			
		||||
  "write" in navigator.clipboard &&
 | 
			
		||||
  "ClipboardItem" in window;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user