diff --git a/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts b/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts index 9a89d795ac..8e08a454d4 100644 --- a/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts +++ b/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts @@ -2,10 +2,14 @@ import { useUserSettingsContext } from '@/shared/context/user-settings-context' import getMeta from '@/utils/meta' import { isSplitTestEnabled, getSplitTestVariant } from '@/utils/splitTestUtils' +export const ignoringUserCutoffDate = + new URLSearchParams(window.location.search).get('skip-new-user-check') === + 'true' // TODO: change this when we have a launch date const NEW_USER_CUTOFF_DATE = new Date('2100-01-01') export const isNewUser = () => { + if (ignoringUserCutoffDate) return true const user = getMeta('ol-user') if (!user.signUpDate) return false