Skip to content

Commit

Permalink
Fix clipboard permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Nov 25, 2024
1 parent 6a7c146 commit 5cce715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<body>
<iframe src="sandbox-app.html" class="discovery"
sandbox="allow-scripts allow-popups allow-modals"
allow="clipboard-read"
allow="clipboard-read; clipboard-write"
></iframe>
<script src="app.js"></script>
</body>
Expand Down
1 change: 1 addition & 0 deletions src/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ function getIframe(settings) {
iframe = document.createElement('iframe');
iframe.className = 'discovery';
iframe.setAttribute('sandbox', 'allow-scripts allow-popups allow-modals');
iframe.setAttribute('allow', 'clipboard-write');
iframe.src = chrome.runtime.getURL('sandbox.html');
iframe.style.cssText = 'position: fixed; inset: 0; border: 0; width: 100%; height: 100%; visibility: hidden';

Expand Down

0 comments on commit 5cce715

Please sign in to comment.