From 7a98f1dfcb7b4b2cc8e273a00308c9d6f9f300bd Mon Sep 17 00:00:00 2001 From: dimden Date: Sat, 15 Apr 2023 15:49:48 +0300 Subject: [PATCH] Make Vencord Extension run in iframes (#914) Fixes support for https://github.com/NeverDecaf/discord-PWA --- browser/manifest.json | 3 ++- browser/modifyResponseHeaders.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/manifest.json b/browser/manifest.json index 29388805..cb7ecc71 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 ed390759..5b0b3e37 100644 --- a/browser/modifyResponseHeaders.json +++ b/browser/modifyResponseHeaders.json @@ -15,7 +15,7 @@ ] }, "condition": { - "resourceTypes": ["main_frame"] + "resourceTypes": ["main_frame", "sub_frame"] } }, {