|
22 | 22 | // Don't redirect if we're visiting self-service |
23 | 23 | window.location.pathname !== "/self-service" && |
24 | 24 | // Don't redirect if we're visiting webauthn iframe used for migration |
25 | | - window.location.pathname !== "/iframe/webauthn" && |
26 | | - // TODO: Remove this once we move all legacy domains to new interface |
27 | | - !window.location.origin.endsWith("identity.internetcomputer.org") |
| 25 | + window.location.pathname !== "/iframe/webauthn" |
28 | 26 | ) { |
29 | 27 | window.location.replace( |
30 | 28 | primaryOrigin + |
|
65 | 63 | html[data-temp-hide-ssg] body > div { |
66 | 64 | display: none !important; |
67 | 65 | } |
68 | | -
|
69 | | - html[data-temp-hide-ssg="legacy"] body { |
70 | | - /* Make sure page background matches legacy (--nvc-surface-dark in src/frontend/src/lib/legacy/styles/main.css) */ |
71 | | - background: oklch(0.15 0.0236 261.52) !important; |
72 | | - } |
73 | 66 | </style> |
74 | 67 | <script> |
75 | | - if ( |
76 | | - // TODO: Remove this branch once we move all legacy domains to new interface |
77 | | - window.location.origin === "https://identity.internetcomputer.org" || |
78 | | - window.location.origin === "https://beta.identity.internetcomputer.org" |
79 | | - ) { |
80 | | - // 1A. Hide page until it has fully loaded on legacy domains, |
81 | | - // this avoids showing the SSG landing page beforehand. |
82 | | - document.documentElement.setAttribute("data-temp-hide-ssg", "legacy"); |
83 | | - } else if (window.location.hash.length > 0) { |
| 68 | + if (window.location.hash.length > 0) { |
84 | 69 | // 1B. Hide page until it has redirected on new domains, |
85 | 70 | // this avoids showing the SSG landing page beforehand. |
86 | 71 | document.documentElement.setAttribute("data-temp-hide-ssg", "fragment"); |
|
0 commit comments