chore(ext): refine MultiPageAgent api and clean up

This commit is contained in:
Simon
2026-01-28 13:36:46 +08:00
parent 55ffbb8f08
commit dd593f77e9
5 changed files with 15 additions and 26 deletions

View File

@@ -3,11 +3,6 @@
* - redirect messages from RemotePageController(Agent, extension pages) to ContentScript
*/
// chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
// if (message.type !== 'PAGE_CONTROL') {
// return
// }
export function handlePageControlMessage(
message: { type: 'PAGE_CONTROL'; action: string; payload: any; targetTabId: number },
sender: chrome.runtime.MessageSender,