Remove requestDomain from messaging

This commit is contained in:
mrjvs
2024-01-11 19:18:40 +01:00
parent e9023197c3
commit 9dab5bafa2
5 changed files with 6 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ const mapHeadersToDeclarativeNetRequestHeaders = (
const handler: PlasmoMessaging.MessageHandler<Request, BaseResponse> = async (req, res) => {
try {
await assertDomainWhitelist(req.body.requestDomain);
await assertDomainWhitelist(req.sender.tab.url);
if (chrome) {
await chrome.declarativeNetRequest.updateDynamicRules({