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`) 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",