From 76ce64c20e7447719fd270f0cbf0b5336dd284ed Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" Date: Mon, 5 Jul 2021 14:49:49 +0300 Subject: [PATCH] Use import Signed-off-by: Hung-Han (Henry) Chen --- src/main/index.ts | 4 +--- src/renderer/lens-app.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 5d2e6a430e..71fbd7b8e2 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -60,9 +60,7 @@ import { WeblinkStore } from "../common/weblink-store"; import { ExtensionsStore } from "../extensions/extensions-store"; import { FilesystemProvisionerStore } from "./extension-filesystem"; import { CaptureConsole, Dedupe, Offline } from "@sentry/integrations"; - -// Initializing Sentry -const Sentry = require("@sentry/electron/dist/main"); +import Sentry from "@sentry/electron/dist/main"; Sentry.init({ dsn, diff --git a/src/renderer/lens-app.tsx b/src/renderer/lens-app.tsx index 9ba6236bca..7e855caa18 100644 --- a/src/renderer/lens-app.tsx +++ b/src/renderer/lens-app.tsx @@ -38,9 +38,7 @@ import { IpcRendererNavigationEvents } from "./navigation/events"; import { catalogEntityRegistry } from "./api/catalog-entity-registry"; import { dsn, isProduction } from "../common/vars"; import { CaptureConsole, Dedupe, Offline } from "@sentry/integrations"; - -// Initializing Sentry -const Sentry = require("@sentry/electron/dist/renderer"); +import Sentry from "@sentry/electron/dist/renderer"; Sentry.init({ dsn,