Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Feb 7, 2025
1 parent 583b235 commit 5ee28ae
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/scan/src/new-outlines/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,17 @@ export const initReactScanInstrumentation = (setupToolbar: () => void) => {
onActive: () => {
if (hasStopped()) return;

const host = getCanvasEl();
if (host) {
document.documentElement.appendChild(host);
}
globalThis.__REACT_SCAN__ = {
ReactScanInternals,
};
startReportInterval();
logIntro();
requestAnimationFrame(() => {
const host = getCanvasEl();
if (host) {
document.documentElement.appendChild(host);
}
globalThis.__REACT_SCAN__ = {
ReactScanInternals,
};
startReportInterval();
logIntro();
});
},
onError: () => {
// todo: ingest errors without accidentally collecting data about user
Expand Down

0 comments on commit 5ee28ae

Please sign in to comment.