Skip to content

Commit 1c02d1c

Browse files
committed
remove unnecesssary
Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent c159ec6 commit 1c02d1c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

components/dashboard/src/App.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import { StartWorkspaceModal } from "./workspaces/StartWorkspaceModal";
4747
import { parseProps } from "./start/StartWorkspace";
4848
import SelectIDEModal from "./settings/SelectIDEModal";
4949
import { StartPage, StartPhase } from "./start/StartPage";
50-
import { isGitpodIo, isLocalPreview } from "./utils";
50+
import { isGitpodIo } from "./utils";
5151
import { BlockedRepositorySettings } from "./admin/BlockedRepositorySettings";
5252

5353
const Setup = React.lazy(() => import(/* webpackPrefetch: true */ "./Setup"));
@@ -277,11 +277,6 @@ function App() {
277277
return <div></div>;
278278
}
279279

280-
if (isLocalPreview()) {
281-
window.location.host = "www.gitpod.io";
282-
return <div></div>;
283-
}
284-
285280
if (isGitpodIo() && window.location.pathname === "/" && window.location.hash === "" && !loading && !user) {
286281
if (!GitpodCookie.isPresent(document.cookie)) {
287282
window.location.href = `https://www.gitpod.io`;

0 commit comments

Comments
 (0)