From 62df72df0002548b0e50803169877e57eff059fb Mon Sep 17 00:00:00 2001 From: Mike Rosack Date: Tue, 10 Jan 2023 07:44:27 -0600 Subject: [PATCH] update rollbar token for new release --- app/main.js | 2 +- ui/rollbarErrorHandler.ts | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/main.js b/app/main.js index 4ed5fa4..d102aeb 100644 --- a/app/main.js +++ b/app/main.js @@ -118,7 +118,7 @@ contextMenu({ const Rollbar = require("rollbar"); new Rollbar({ - accessToken: "e381e1de46414e03a95005afd73d0c48", + accessToken: "2657e39f6c2847edb4f750a37ef4b20b", environment: "production", captureUncaught: true, captureUnhandledRejections: true, diff --git a/ui/rollbarErrorHandler.ts b/ui/rollbarErrorHandler.ts index 4f88b3c..903e7e9 100644 --- a/ui/rollbarErrorHandler.ts +++ b/ui/rollbarErrorHandler.ts @@ -1,5 +1,10 @@ import * as Rollbar from "rollbar"; -import { Injectable, Inject, InjectionToken, ErrorHandler } from "@angular/core"; +import { + Injectable, + Inject, + InjectionToken, + ErrorHandler, +} from "@angular/core"; import { RPC_TO_MAIN } from "./rpcChannels"; import { environment } from "./environments/environment"; @@ -13,7 +18,7 @@ export class RollbarErrorHandler implements ErrorHandler { } } - handleError(err: Error & { originalError: Error}): void { + handleError(err: Error & { originalError: Error }): void { this.rollbar.error(err.originalError || err); // eslint-disable-next-line no-console console.error(err); @@ -22,7 +27,7 @@ export class RollbarErrorHandler implements ErrorHandler { export const rollbarFactory = (): Rollbar => new Rollbar({ - accessToken: "e381e1de46414e03a95005afd73d0c48", + accessToken: "2657e39f6c2847edb4f750a37ef4b20b", captureUncaught: true, captureUnhandledRejections: true, environment: "production",