Remove Raygun.

This commit is contained in:
Matthew Stratford 2021-02-14 17:55:17 +00:00
parent 0a134f05f6
commit 3e7e3fcd15
2 changed files with 1 additions and 26 deletions

View file

@ -4,27 +4,9 @@ import "./index.css";
import App from "./App";
import * as serviceWorker from "./serviceWorkerLoader";
import raygun from "raygun4js";
import store, { getActionHistory } from "./store";
import store from "./store";
import { Provider } from "react-redux";
raygun("apiKey", "mtj24r3YzPoYyCG8cVArA");
raygun("enableCrashReporting", true);
if (
typeof process.env.REACT_APP_VERSION === "string" &&
process.env.REACT_APP_VERSION.length > 0
) {
raygun("setVersion", process.env.REACT_APP_VERSION);
}
raygun("withCustomData", function() {
return {
state: store.getState(),
actionHistory: getActionHistory(),
};
});
function render() {
ReactDOM.render(
<Provider store={store}>

View file

@ -8,8 +8,6 @@ import {
doesCurrentUserHavePermission,
} from "../api";
import raygun from "raygun4js";
const BROADCAST_PERMISSION_ID = 340;
interface sessionState {
@ -84,11 +82,6 @@ export const getUser = (): AppThunk => async (dispatch) => {
getCurrentApiUser(),
doesCurrentUserHavePermission(BROADCAST_PERMISSION_ID),
]);
raygun("setUser", {
identifier: user.memberid.toString(10),
firstName: user.fname,
fullName: user.fname + " " + user.sname,
});
dispatch(sessionState.actions.setCurrentUser({ user, canBroadcast }));
} catch (e) {
console.log("failed to get user. " + e.toString());