Skip to content

Commit

Permalink
fix_resource_use_copy_add_jar
Browse files Browse the repository at this point in the history
  • Loading branch information
zackyoungh committed Nov 28, 2024
1 parent 5c775d7 commit a9336ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dinky-web/src/utils/function.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ export const parseDateStringToDate = (dateString: Date) => {
*/
export async function handleCopyToClipboard(copyText: string) {
// Adapting to browsers without the navigator.clipboard.writeText method can be done using the following code
if (!navigator) {
if (!navigator?.clipboard) {
const textarea = document.createElement('textarea');
textarea.value = copyText;
document.body.appendChild(textarea);
Expand Down

0 comments on commit a9336ce

Please sign in to comment.