Commit d8e9bf3
fix(viewer): Prevent overwriting tab ID and refine event logging
- **background.js**: Modify the `processIncomingMessage` function to conditionally assign `message.tid`. The originating tab ID will now only be set if `message.tid` is currently `undefined` or `null`. This prevents an existing tab ID from being inadvertently overwritten, ensuring more accurate tracking and attribution of messages to their source tabs. This is crucial for reliable viewer count metrics and event processing.
- **events.html**: Adjust logging within the event overlay to specifically output `e.data.dataReceived.overlayNinja`. This change streamlines debugging efforts by focusing the log output on relevant event data impacting the overlay display, aiding in the validation of viewer-related information.
[auto-enhanced]1 parent 9ca0aec commit d8e9bf3
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3579 | 3579 | | |
3580 | 3580 | | |
3581 | 3581 | | |
3582 | | - | |
3583 | | - | |
3584 | | - | |
3585 | | - | |
3586 | | - | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
3587 | 3587 | | |
3588 | 3588 | | |
3589 | 3589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
1506 | | - | |
1507 | 1506 | | |
1508 | 1507 | | |
1509 | 1508 | | |
| |||
1530 | 1529 | | |
1531 | 1530 | | |
1532 | 1531 | | |
| 1532 | + | |
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
| |||
0 commit comments