From cf1f746a43b9640198b978153a55688d6707c9ac Mon Sep 17 00:00:00 2001 From: Darrin Nagengast Date: Mon, 10 Nov 2025 14:01:04 -0600 Subject: [PATCH 1/2] fix: allow transact iframe to copy to clipboard --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f4f26a5..ccc7c9f 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ let atomicSDK = { } let iframeElement = document.createElement('iframe') - iframeElement.setAttribute('allow', 'web-share') + iframeElement.setAttribute('allow', 'web-share; clipboard-write;') const productType = config.operation || config.product || 'Atomic' iframeElement.setAttribute('title', `${productType} Interface`) iframeElement.setAttribute('aria-label', `${productType} Interface`) From e043ad778145e819ddae5007a260bcee0d11b143 Mon Sep 17 00:00:00 2001 From: Darrin Nagengast Date: Mon, 10 Nov 2025 14:04:51 -0600 Subject: [PATCH 2/2] test: update test snapshot --- test/__snapshots__/index.spec.js.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/__snapshots__/index.spec.js.snap b/test/__snapshots__/index.spec.js.snap index 725540c..cf074d6 100644 --- a/test/__snapshots__/index.spec.js.snap +++ b/test/__snapshots__/index.spec.js.snap @@ -4,7 +4,7 @@ exports[`JavaScript SDK should initialize the sdk 1`] = ` [ [ "allow", - "web-share", + "web-share; clipboard-write;", ], [ "title",