mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-25 02:50:51 +00:00
UI Formatting Cleanup
This commit is contained in:
@@ -1,35 +1,15 @@
|
||||
import { applyMiddleware, compose } from 'redux';
|
||||
import Raven from 'raven-js';
|
||||
import createRavenMiddleware from 'raven-for-redux';
|
||||
import thunk from 'redux-thunk';
|
||||
import { routerMiddleware } from 'react-router-redux';
|
||||
import sentryMiddleware from './sentryMiddleware';
|
||||
import persistState from './persistState';
|
||||
|
||||
export default function(history) {
|
||||
const {
|
||||
analytics,
|
||||
branch,
|
||||
version,
|
||||
release,
|
||||
isProduction
|
||||
} = window.Sonarr;
|
||||
|
||||
const dsn = isProduction ? 'https://c3a5b33e08de4e18b7d0505e942dbc95@sentry.io/216290' :
|
||||
'https://c3a5b33e08de4e18b7d0505e942dbc95@sentry.io/216290';
|
||||
|
||||
Raven.config(dsn).install();
|
||||
|
||||
const middlewares = [];
|
||||
const ravenMiddleware = sentryMiddleware();
|
||||
|
||||
if (analytics) {
|
||||
middlewares.push(createRavenMiddleware(Raven, {
|
||||
environment: isProduction ? 'production' : 'development',
|
||||
release,
|
||||
tags: {
|
||||
branch,
|
||||
version
|
||||
}
|
||||
}));
|
||||
if (ravenMiddleware) {
|
||||
middlewares.push(ravenMiddleware);
|
||||
}
|
||||
|
||||
middlewares.push(routerMiddleware(history));
|
||||
|
||||
Reference in New Issue
Block a user