Commit bd968fa
fix(inspector/telemetry): fix banner_viewed race and dead opt-out check
- Defer trackBannerViewed until runtime connection is established via
pendingBannerViewed + flushPendingBannerViewed(), preventing the race
where the CDN response beats the /info handshake and fires the event
before core.telemetryDisabled is known
- Remove dead isTelemetryOptedOut() short-circuit from track(); opt-out
is enforced at call sites via core.telemetryDisabled, not localStorage
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent aee390a commit bd968fa
3 files changed
Lines changed: 25 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2436 | 2436 | | |
2437 | 2437 | | |
2438 | 2438 | | |
| 2439 | + | |
2439 | 2440 | | |
2440 | 2441 | | |
2441 | 2442 | | |
| |||
2634 | 2635 | | |
2635 | 2636 | | |
2636 | 2637 | | |
| 2638 | + | |
2637 | 2639 | | |
2638 | 2640 | | |
2639 | 2641 | | |
| |||
7401 | 7403 | | |
7402 | 7404 | | |
7403 | 7405 | | |
| 7406 | + | |
| 7407 | + | |
| 7408 | + | |
| 7409 | + | |
| 7410 | + | |
| 7411 | + | |
| 7412 | + | |
| 7413 | + | |
| 7414 | + | |
| 7415 | + | |
7404 | 7416 | | |
7405 | 7417 | | |
7406 | 7418 | | |
| |||
7484 | 7496 | | |
7485 | 7497 | | |
7486 | 7498 | | |
7487 | | - | |
7488 | | - | |
| 7499 | + | |
| 7500 | + | |
| 7501 | + | |
| 7502 | + | |
7489 | 7503 | | |
7490 | 7504 | | |
7491 | 7505 | | |
7492 | 7506 | | |
7493 | 7507 | | |
7494 | | - | |
7495 | | - | |
7496 | | - | |
7497 | | - | |
7498 | | - | |
7499 | | - | |
| 7508 | + | |
| 7509 | + | |
| 7510 | + | |
| 7511 | + | |
| 7512 | + | |
7500 | 7513 | | |
7501 | 7514 | | |
7502 | 7515 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
0 commit comments