Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
  • Loading branch information
akurinnoy committed Aug 31, 2023
1 parent 429444b commit 5ffaf17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
FactoryParams,
USE_DEFAULT_DEVFILE,
} from '../../../../../services/helpers/factoryFlow/buildFactoryParams';
import { getEnvironment, isDevEnvironment } from '../../../../../services/helpers/environment';
import { AlertItem } from '../../../../../services/helpers/types';
import OAuthService, { isOAuthResponse } from '../../../../../services/oauth';
import SessionStorageService, { SessionStorageKey } from '../../../../../services/session-storage';
Expand Down Expand Up @@ -247,15 +246,9 @@ class CreatingStepFetchDevfile extends ProgressStep<Props, State> {
this.checkNumberOfTries(factoryUrl);
this.increaseNumberOfTries(factoryUrl);

// open authentication page
const env = getEnvironment();
// build redirect URL
let redirectHost = window.location.origin;
if (isDevEnvironment(env)) {
redirectHost = env.server || redirectHost;
}
/* open authentication page */

const redirectUrl = new URL('/f', redirectHost);
const redirectUrl = new URL('/f', window.location.origin);
redirectUrl.searchParams.set(
FACTORY_LINK_ATTR,
this.props.history.location.search.replace(/^\?/, ''),
Expand Down
43 changes: 0 additions & 43 deletions packages/dashboard-frontend/src/services/helpers/environment.ts

This file was deleted.

0 comments on commit 5ffaf17

Please sign in to comment.