Repository navigation
Commit a2c528d
committed
fix(web): treat a window without a location as not hosted
shell.ts now evaluates isHostedStaticApp at module load to decide whether
the sidebar scope must wait for the primary environment. Test environments
that expose a window global without a location threw on window.location.href
during that import and took MessagesTimeline.test.tsx down with it. A window
without a location has no origin to be hosted at, so it reads as not hosted,
matching the existing no-window branch.1 parent 435dc64 commit a2c528d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments