From 9da7238c3b998245abe98340ea1cae4803acb730 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sat, 30 Jan 2021 11:14:34 +0530 Subject: [PATCH] Use hasOwnProperty --- src/components/Links.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Links.svelte b/src/components/Links.svelte index d2a0cd922f..43b80979f0 100755 --- a/src/components/Links.svelte +++ b/src/components/Links.svelte @@ -51,7 +51,7 @@ }; const isClipboardAvailable = () => { - return !!window.ClipboardItem; + return window.hasOwnProperty('ClipboardItem'); }; const clipboardCopy = (canvas, context, image) => {