Exclude sentryDsn from config

This commit is contained in:
Jordan Eldredge 2018-06-22 00:07:16 -07:00
parent 016bce9e36
commit 2f38c7b499
2 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,5 @@
import llamaAudio from "../mp3/llama-2.91.mp3";
/* global SENTRY_DSN */
const { hash } = window.location;
let config = {};
if (hash) {
@ -138,4 +136,3 @@ export const hideAbout = config.hideAbout || false;
export const disableMarquee = config.disableMarquee || false;
export const initialState = config.initialState || undefined;
export const milkdrop = config.milkdrop || false;
export const sentryDsn = SENTRY_DSN;

View file

@ -1,3 +1,5 @@
/* global SENTRY_DSN */
import "babel-polyfill";
import Raven from "raven-js";
import createMiddleware from "raven-for-redux";
@ -25,7 +27,6 @@ import {
skinUrl,
initialTracks,
initialState,
sentryDsn,
milkdrop
} from "./config";
@ -59,7 +60,7 @@ function filterBreadcrumbActions(action) {
return !noisy;
}
Raven.config(sentryDsn, {
Raven.config(SENTRY_DSN, {
/* global COMMITHASH */
release: typeof COMMITHASH !== "undefined" ? COMMITHASH : "DEV"
}).install();