disable sentry in cluster frame (#4161)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-10-28 12:01:52 +03:00
1 parent 74abf474d7
commit bcb18668c5
4 files changed
+76 -125

No files matched your search

+6 -4
View File
@@ -51,6 +51,10 @@ import { TerminalStore } from "./components/dock/terminal.store";
import cloudsMidnight from "./monaco-themes/Clouds Midnight.json";
import { AppPaths } from "../common/app-paths";
if (process.isMainFrame) {
SentryInit();
}
configurePackages();
/**
@@ -72,6 +76,8 @@ export async function bootstrap(comp: () => Promise<AppComponent>) {
await AppPaths.init();
const rootElem = document.getElementById("app");
UserStore.createInstance();
await attachChromeDebugger();
rootElem.classList.toggle("is-mac", isMac);
@@ -90,10 +96,6 @@ export async function bootstrap(comp: () => Promise<AppComponent>) {
ExtensionLoader.createInstance().init();
ExtensionDiscovery.createInstance().init();
UserStore.createInstance();
SentryInit();
// ClusterStore depends on: UserStore
const cs = ClusterStore.createInstance();