We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clipboardy
1 parent 899c5d4 commit ef605fdCopy full SHA for ef605fd
src/app/utils/text.ts
@@ -1,6 +1,7 @@
1
-import clipboard from 'clipboardy'
2
-
3
-export const copyText = async (text: string) => await clipboard.write(text)
+export const copyText = async (text: string) => {
+ const clipboard = (await import('clipboardy')).default
+ await clipboard.write(text)
4
+}
5
6
export const calculatePasswordStrength = (password: string) => {
7
if (!password) return 0
0 commit comments