content.js 490 B

12345678
  1. (async () => {
  2. try {
  3. const { installContentRuntime } = await import(chrome.runtime.getURL('content-runtime.js'));
  4. await installContentRuntime({ chrome, window, document }).ready;
  5. } catch {
  6. try { await chrome.runtime.sendMessage({ type: 'REPORT_STATUS', runtimeError: '采集脚本初始化失败,请重新连接页面;若仍失败,请重新加载扩展后刷新 Teams。' }); } catch { /* An invalidated extension context cannot contact its background. */ }
  7. }
  8. })();