Skip to content

Commit e8b4d7f

Browse files
committed
Revert changes in IDE launcher
1 parent 67880a3 commit e8b4d7f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/components/IdeLauncher/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ export const IdeLauncher = () => {
135135
await tryToScanRunningIdeProjects();
136136
}
137137

138-
void initialScan();
139-
}, [tryToScanRunningIdeProjects]);
138+
if (!isMobile) {
139+
void initialScan();
140+
}
141+
}, [isMobile, tryToScanRunningIdeProjects]);
140142

141143
const renderContent = () => {
142144
if (!action) {

src/containers/IdeLauncher/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { StrictMode } from "react";
22
import { createRoot } from "react-dom/client";
3-
import { sendMessage } from "../../api";
43
import { App } from "../../components/common/App";
54
import { PostHogHoC } from "../../components/common/PostHogHoC";
65
import { IdeLauncher } from "../../components/IdeLauncher";
@@ -14,9 +13,6 @@ window.addEventListener("error", (e) => {
1413
handleUncaughtError(APP_ID, e);
1514
});
1615

17-
// TODO: make not required and remove
18-
window.sendMessageToDigma = sendMessage;
19-
2016
const rootElement = document.getElementById("root");
2117

2218
if (rootElement) {

0 commit comments

Comments
 (0)