Skip to content

Commit

Permalink
Use hasOwnProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Jan 30, 2021
1 parent ec8c53c commit 9da7238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Links.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
};
const isClipboardAvailable = () => {
return !!window.ClipboardItem;
return window.hasOwnProperty('ClipboardItem');
};
const clipboardCopy = (canvas, context, image) => {
Expand Down

0 comments on commit 9da7238

Please sign in to comment.