mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix setupping of sentry after rebase
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
c6c128e890
commit
00a5e54ce8
0
__mocks__/@sentry/electron/main.ts
Normal file
0
__mocks__/@sentry/electron/main.ts
Normal file
0
__mocks__/@sentry/electron/renderer.ts
Normal file
0
__mocks__/@sentry/electron/renderer.ts
Normal file
@ -4,14 +4,15 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import { afterApplicationIsReadyInjectionToken } from "../after-application-is-ready-injection-token";
|
import { afterApplicationIsReadyInjectionToken } from "../after-application-is-ready-injection-token";
|
||||||
import { SentryInit } from "../../../../common/sentry";
|
import { initializeSentryReporting } from "../../../../common/sentry";
|
||||||
|
import { init } from "@sentry/electron/main";
|
||||||
|
|
||||||
const setupSentryInjectable = getInjectable({
|
const setupSentryInjectable = getInjectable({
|
||||||
id: "setup-sentry",
|
id: "setup-sentry",
|
||||||
|
|
||||||
instantiate: () => ({
|
instantiate: () => ({
|
||||||
run: () => {
|
run: () => {
|
||||||
SentryInit();
|
initializeSentryReporting(init);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user