INNER CODE UNIT · TypeScript
getJobStatus
RyanYipeng/SyncCaster · apps/extension/src/background/index.ts:599
async function getJobStatus(jobId: string) {
return getManagedJobStatus(jobId);
}
/**
* 从标签页采集内容
*/
async function collectContentFromTab(tabId: number) {
logger.info('collect', `Collecting content from tab: ${tabId}`);
const result = await chrome.tabs.sendMessage(tabId, {
type: 'COLLECT_CONTENT',
});
return result;
}
logger.info('startup', 'Background service worker started');