INNER CODE UNIT · TypeScript

collectContentFromTab

RyanYipeng/SyncCaster · apps/extension/src/background/index.ts:606

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');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…