aboutsummaryrefslogtreecommitdiff
path: root/packages/web-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-06-03 13:11:07 -0300
committerSebastian <sebasjm@gmail.com>2024-06-03 13:11:07 -0300
commitaac3878f5915d4742d253ad13b076a20f011e403 (patch)
tree54938dc4300eab5146fef17e7ca82fa7e59f5f75 /packages/web-util
parent228324bb4411515675930e68eece2045dcafe12a (diff)
downloadwallet-core-aac3878f5915d4742d253ad13b076a20f011e403.tar.xz
check account info match
Diffstat (limited to 'packages/web-util')
-rw-r--r--packages/web-util/src/components/CopyButton.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web-util/src/components/CopyButton.tsx b/packages/web-util/src/components/CopyButton.tsx
index 3ca3e4078..4351da018 100644
--- a/packages/web-util/src/components/CopyButton.tsx
+++ b/packages/web-util/src/components/CopyButton.tsx
@@ -21,7 +21,7 @@ export function CopyButton({ class: clazz, children, getContent }: { children?:
const [copied, setCopied] = useState(false);
function copyText(): void {
if (!navigator.clipboard && !window.isSecureContext) {
- alert(`clipboard is not available on insecure context (http), the content is:\n${getContent()}`)
+ prompt("Clipboard is not available on insecure context (http).", getContent());
}
if (navigator.clipboard) {
navigator.clipboard.writeText(getContent() || "");