mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-03-23 06:08:06 +03:00
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.
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
"permissions": [
|
||||
"storage",
|
||||
"scripting",
|
||||
"unlimitedStorage"
|
||||
"unlimitedStorage",
|
||||
"clipboardWrite"
|
||||
],
|
||||
"options_ui": {
|
||||
"page": "options/options.html",
|
||||
|
||||
@@ -2205,6 +2205,7 @@ function openInfoMenu() {
|
||||
popup.id = "sponsorBlockPopupContainer";
|
||||
|
||||
const frame = document.createElement("iframe");
|
||||
frame.allow = "clipboard-write";
|
||||
frame.width = "374";
|
||||
frame.height = "500";
|
||||
frame.style.borderRadius = "12px";
|
||||
|
||||
Reference in New Issue
Block a user