Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Remove airbrake wrapper from front-end bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Martinez committed Jun 22, 2017
1 parent 88f4d65 commit d0a55d0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/javascript/packs/member_facing.js
Expand Up @@ -27,7 +27,7 @@ if (process.env.EXTERNAL_JS_PATH) {
require(process.env.EXTERNAL_JS_PATH);
}

let initializeApp = () => {
const initializeApp = () => {
window.sumofus = window.sumofus || {}; // for legacy templates that reference window.sumofus
window.champaign = window.champaign || window.sumofus || {};
Object.assign(window.champaign, {
Expand All @@ -46,13 +46,5 @@ let initializeApp = () => {
});
};

if (process.env.NODE_ENV === 'production') {
const airbrakeClient = new airbrake({
projectId: process.env.AIRBRAKE_PROJECT_ID,
projectKey: process.env.AIRBRAKE_API_KEY,
});
initializeApp = airbrakeClient.wrap(initializeApp);
}

initializeApp();
window.champaignStore = configureStore({});

0 comments on commit d0a55d0

Please sign in to comment.