aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDani Bednarski <49581958+DaniBedz@users.noreply.github.com>2026-05-15 22:08:50 +1000
committerTianren Dong <tianrendong.dtr@gmail.com>2026-05-16 13:16:44 -0400
commitd9f13a368e0acc9ac49e61a948d2b15ee0651d23 (patch)
tree1415610926a494309a159182e8b3bdd2894614ee /scripts
parent0168a4e8b3e6144cdc6e0d13a94b383cb7f205ce (diff)
fix: capture early console/network messages at document_start
Adds an early-capture script injected at document_start on every navigation via webNavigation.onCommitted + injectImmediately:true. Wraps console.*, fetch, and XMLHttpRequest before page JS runs, so console messages, errors, unhandled rejections, and network requests during page load are captured in window.__PI_CHROME_STATE__. Sets __piChromeWrapped flags so the existing post-hoc installPiChromeInstrumentation() is idempotent (checks instrumentationInstalled). Fixes chrome_list_console_messages returning empty for errors that fire during React render / initial API calls.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions