We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdec795 commit 721ef1fCopy full SHA for 721ef1f
dinky-web/src/utils/function.tsx
@@ -649,7 +649,7 @@ export const parseDateStringToDate = (dateString: Date) => {
649
*/
650
export async function handleCopyToClipboard(copyText: string) {
651
// Adapting to browsers without the navigator.clipboard.writeText method can be done using the following code
652
- if (!navigator) {
+ if (!navigator?.clipboard) {
653
const textarea = document.createElement('textarea');
654
textarea.value = copyText;
655
document.body.appendChild(textarea);
0 commit comments