feat(ext): add agent heart beat check

This commit is contained in:
Simon
2026-01-29 19:21:57 +08:00
parent 4e87940127
commit 5cfaa292d3
3 changed files with 38 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
import { handlePageControlMessage } from '@/agent/RemotePageController.background'
import { handleTabControlMessage } from '@/agent/TabsController.background'
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
chrome.runtime.onMessage.addListener((message, sender, sendResponse): true | undefined => {
if (message.type === 'TAB_CONTROL') {
return handleTabControlMessage(message, sender, sendResponse)
} else if (message.type === 'PAGE_CONTROL') {