Skip to content

Commit

Permalink
update rollbar token for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosack committed Jan 10, 2023
1 parent 712b868 commit 62df72d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ contextMenu({
const Rollbar = require("rollbar");

new Rollbar({
accessToken: "e381e1de46414e03a95005afd73d0c48",
accessToken: "2657e39f6c2847edb4f750a37ef4b20b",
environment: "production",
captureUncaught: true,
captureUnhandledRejections: true,
Expand Down
11 changes: 8 additions & 3 deletions ui/rollbarErrorHandler.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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);
Expand All @@ -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",
Expand Down

0 comments on commit 62df72d

Please sign in to comment.