Commit 07ed456
committed
fix: stop rewriting the
`window` was being rewritten to `globalThis` (or `dntShim.dntGlobalThis`
when the shim proxy was used), which broke browser detection because
`typeof window === "object"` would then always be true.
`window` doesn't exist in Deno anymore, so leave it alone.window global1 parent f946d30 commit 07ed456
2 files changed
Lines changed: 10 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 90 | | |
111 | 91 | | |
112 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 105 | | |
113 | 106 | | |
114 | 107 | | |
| |||
445 | 438 | | |
446 | 439 | | |
447 | 440 | | |
448 | | - | |
449 | 441 | | |
450 | 442 | | |
451 | 443 | | |
| |||
464 | 456 | | |
465 | 457 | | |
466 | 458 | | |
467 | | - | |
468 | 459 | | |
469 | 460 | | |
470 | 461 | | |
471 | 462 | | |
472 | 463 | | |
473 | 464 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
489 | 475 | | |
490 | 476 | | |
491 | 477 | | |
| |||
0 commit comments