aboutsummaryrefslogtreecommitdiff
path: root/browser
diff options
context:
space:
mode:
authordimden <firefox78888@gmail.com>2023-04-15 15:49:48 +0300
committerGitHub <noreply@github.com>2023-04-15 14:49:48 +0200
commit7a98f1dfcb7b4b2cc8e273a00308c9d6f9f300bd (patch)
tree0d4c859ebb59d228e39167241f7e99a34e4abec9 /browser
parent9e6d3459e3c20a49b5ae95c8fd7919b6ed8a425e (diff)
downloadVencord-7a98f1dfcb7b4b2cc8e273a00308c9d6f9f300bd.tar.gz
Vencord-7a98f1dfcb7b4b2cc8e273a00308c9d6f9f300bd.tar.bz2
Vencord-7a98f1dfcb7b4b2cc8e273a00308c9d6f9f300bd.zip
Make Vencord Extension run in iframes (#914)
Fixes support for https://github.com/NeverDecaf/discord-PWA
Diffstat (limited to 'browser')
-rw-r--r--browser/manifest.json3
-rw-r--r--browser/modifyResponseHeaders.json2
2 files changed, 3 insertions, 2 deletions
diff --git a/browser/manifest.json b/browser/manifest.json
index 2938880..cb7ecc7 100644
--- a/browser/manifest.json
+++ b/browser/manifest.json
@@ -21,7 +21,8 @@
{
"run_at": "document_start",
"matches": ["*://*.discord.com/*"],
- "js": ["content.js"]
+ "js": ["content.js"],
+ "all_frames": true
}
],
diff --git a/browser/modifyResponseHeaders.json b/browser/modifyResponseHeaders.json
index ed39075..5b0b3e3 100644
--- a/browser/modifyResponseHeaders.json
+++ b/browser/modifyResponseHeaders.json
@@ -15,7 +15,7 @@
]
},
"condition": {
- "resourceTypes": ["main_frame"]
+ "resourceTypes": ["main_frame", "sub_frame"]
}
},
{