Insert SyncButton on bilibili bangumi detail page to update progress

插入一个手动同步的按钮,以提交追番进度到服务器
This commit is contained in:
2024-04-21 23:34:23 +08:00
parent 11f1ed2875
commit ef26533127
7 changed files with 199 additions and 14 deletions
+1 -5
View File
@@ -24,11 +24,7 @@ const getInfo = async () => {
[tab] = await chrome.tabs.query({ active: true, lastFocusedWindow: true });
if (tab && !tab.url.includes("chrome")) {
const a = await chrome.tabs.sendMessage(tab.id, { type: 'toolbox:getBiliToy' });
console.log('get toy:', a);
return a;
return await chrome.tabs.sendMessage(tab.id, { type: 'toolbox:getBiliToy' });
}
}