Skip to content

Commit c3bff81

Browse files
committed
Switch other domain to new UX too.
1 parent e869a13 commit c3bff81

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

src/frontend/src/lib/state/featureFlags.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,6 @@ export const HARDWARE_KEY_TEST = createFeatureFlagStore(
8282
export const DISCOVERABLE_PASSKEY_FLOW = createFeatureFlagStore(
8383
"DISCOVERABLE_PASSKEY_FLOW",
8484
true,
85-
// TODO: Remove this once we move all legacy domains to new interface
86-
(featureFlag) => {
87-
if (
88-
window.location.origin === "https://identity.internetcomputer.org" ||
89-
window.location.origin === "https://beta.identity.internetcomputer.org"
90-
) {
91-
featureFlag.temporaryOverride(false);
92-
}
93-
},
9485
);
9586

9687
export const ENABLE_ALL_LOCALES = createFeatureFlagStore(

src/frontend/src/routes/+layout.svelte

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
// Don't redirect if we're visiting self-service
2323
window.location.pathname !== "/self-service" &&
2424
// 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"
2826
) {
2927
window.location.replace(
3028
primaryOrigin +
@@ -65,22 +63,9 @@
6563
html[data-temp-hide-ssg] body > div {
6664
display: none !important;
6765
}
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-
}
7366
</style>
7467
<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) {
8469
// 1B. Hide page until it has redirected on new domains,
8570
// this avoids showing the SSG landing page beforehand.
8671
document.documentElement.setAttribute("data-temp-hide-ssg", "fragment");

0 commit comments

Comments
 (0)