Commit ed2f9be
authored
fix(tracing): Fix missing page load metrics in Electron renderer (#5187)
Electron renderers can have a combined Chrome and node.js context which can cause it to be detected as node.js when in fact it has full browser features.
This PR simplifies the detection of the browser performance API so that it doesn't fail to record page load metrics when running in an Electron renderer with mixed context.1 parent 571d661 commit ed2f9be
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments