mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 12:43:24 +00:00
Compare commits
8 Commits
finalize-e
...
01a03cfeb8
Author | SHA1 | Date | |
---|---|---|---|
|
01a03cfeb8 | ||
|
6d1fa16553 | ||
|
a8417c75a3 | ||
|
abf26103e1 | ||
|
d989fd1ee8 | ||
|
03e7649bc1 | ||
|
2ea2208dea | ||
|
6a3d32dcc3 |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@movie-web/extension",
|
"name": "@movie-web/extension",
|
||||||
"displayName": "movie-web extension",
|
"displayName": "movie-web extension",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"description": "Enhance your movie-web experience with just one click",
|
"description": "Enhance your movie-web experience with just one click",
|
||||||
"author": "movie-web",
|
"author": "movie-web",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@@ -52,13 +52,11 @@ const handler: PlasmoMessaging.MessageHandler<Request, Response<any>> = async (r
|
|||||||
const url = makeFullUrl(req.body.url, req.body);
|
const url = makeFullUrl(req.body.url, req.body);
|
||||||
await assertDomainWhitelist(req.sender.tab.url);
|
await assertDomainWhitelist(req.sender.tab.url);
|
||||||
|
|
||||||
if (Object.keys(req.body.headers).length > 0) {
|
await setDynamicRules({
|
||||||
await setDynamicRules({
|
ruleId: MAKE_REQUEST_DYNAMIC_RULE,
|
||||||
ruleId: MAKE_REQUEST_DYNAMIC_RULE,
|
targetDomains: [new URL(url).hostname],
|
||||||
targetDomains: [new URL(url).hostname],
|
requestHeaders: req.body.headers,
|
||||||
requestHeaders: req.body.headers,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
method: req.body.method,
|
method: req.body.method,
|
||||||
|
Reference in New Issue
Block a user