Skip to content

Commit

Permalink
Merge pull request #704 from magiclabs/dh-allow-clipboard
Browse files Browse the repository at this point in the history
allow clipboard access for the iframe
  • Loading branch information
bcleary06 authored Apr 11, 2024
2 parents 3c930a4 + ea99723 commit 716a581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/magic-sdk/src/iframe-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class IframeController extends ViewController {
iframe.dataset.magicIframeLabel = createURL(this.endpoint).host;
iframe.title = 'Secure Modal';
iframe.src = createURL(`/send?params=${encodeURIComponent(this.parameters)}`, this.endpoint).href;
iframe.allow = 'clipboard-read; clipboard-write';
applyOverlayStyles(iframe);
document.body.appendChild(iframe);
resolve(iframe);
Expand Down

0 comments on commit 716a581

Please sign in to comment.