Repository navigation
Commit 52f024f
committed
feat: only show the migration dialog on the ChromeOS webapp
phcode.dev now loads silently for everyone else. The dialog was going up on
every boot of the legacy origin, and outside the ChromeOS webapp it was not
earning that: the origin still works, and anyone who does open the new site
has their data pulled across automatically, so there is no action the modal
has to get out of the user.
The gate sits in main.js next to the isTestWindow guard, where the decision
about which half of the flow runs already lives. sunset-dialog.js is
unchanged apart from its header, so widening the audience later is a one
line revert.
No test covers this. main.js has no exports and _initLegacyOrigin already
short circuits in a test window, so the gate is unreachable from a spec
without moving the predicate into constants.js, where the test would only
restate the implementation.1 parent ed29c1e commit 52f024f
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments