Add toy form values
增加手办表单信息
This commit is contained in:
@@ -3,6 +3,10 @@ import type { PlasmoMessaging } from "@plasmohq/messaging";
|
||||
const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
|
||||
const { token, siteUrl } = await chrome.storage.local.get(["token", "siteUrl"]);
|
||||
|
||||
if (!token || !siteUrl) {
|
||||
throw new Error("未指定 Token 或站点地址");
|
||||
}
|
||||
|
||||
// 更新追番进度
|
||||
if (req.body.action === "updateBangumiProgress") {
|
||||
const { values } = req.body;
|
||||
|
||||
Reference in New Issue
Block a user