Skip to content

Commit 1527cd8

Browse files
author
Shrey Marwaha
committed
Add clipboard write permission and iframe attribute
Added 'clipboardWrite' to extension permissions in manifest.json and set 'allow' attribute to 'clipboard-write' on the info menu iframe in content.ts to enable clipboard operations.
1 parent 3974231 commit 1527cd8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

manifest/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"permissions": [
1818
"storage",
1919
"scripting",
20-
"unlimitedStorage"
20+
"unlimitedStorage",
21+
"clipboardWrite"
2122
],
2223
"options_ui": {
2324
"page": "options/options.html",

src/content.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,7 @@ function openInfoMenu() {
22052205
popup.id = "sponsorBlockPopupContainer";
22062206

22072207
const frame = document.createElement("iframe");
2208+
frame.allow = "clipboard-write";
22082209
frame.width = "374";
22092210
frame.height = "500";
22102211
frame.style.borderRadius = "12px";

0 commit comments

Comments
 (0)