mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 12:43:24 +00:00
cleanup, add icon
This commit is contained in:
BIN
assets/icon.png
BIN
assets/icon.png
Binary file not shown.
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 6.1 KiB |
@@ -54,12 +54,10 @@ const handler: PlasmoMessaging.MessageHandler<RequestBody> = async (req, res) =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (chrome.runtime.lastError?.message) throw new Error(chrome.runtime.lastError.message);
|
if (chrome.runtime.lastError?.message) throw new Error(chrome.runtime.lastError.message);
|
||||||
const currentRules = await chrome.declarativeNetRequest.getDynamicRules();
|
|
||||||
|
|
||||||
res.send({
|
res.send({
|
||||||
success: true,
|
success: true,
|
||||||
body: req.body,
|
body: req.body,
|
||||||
currentRules,
|
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
res.send({
|
res.send({
|
||||||
|
Reference in New Issue
Block a user