mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Ignore some actions in dev tools
This commit is contained in:
parent
b053a83e9e
commit
d12a44839e
1 changed files with 6 additions and 3 deletions
|
|
@ -5,6 +5,11 @@ import reducer from "./reducers";
|
|||
import mediaMiddleware from "./mediaMiddleware";
|
||||
import analyticsMiddleware from "./analyticsMiddleware";
|
||||
import { merge } from "./utils";
|
||||
import { UPDATE_TIME_ELAPSED, STEP_MARQUEE } from "./actionTypes";
|
||||
|
||||
const compose = composeWithDevTools({
|
||||
actionsBlacklist: [UPDATE_TIME_ELAPSED, STEP_MARQUEE]
|
||||
});
|
||||
|
||||
const getStore = (media, stateOverrides) => {
|
||||
let initialState;
|
||||
|
|
@ -17,9 +22,7 @@ const getStore = (media, stateOverrides) => {
|
|||
return createStore(
|
||||
reducer,
|
||||
initialState,
|
||||
composeWithDevTools(
|
||||
applyMiddleware(thunk, mediaMiddleware(media), analyticsMiddleware)
|
||||
)
|
||||
compose(applyMiddleware(thunk, mediaMiddleware(media), analyticsMiddleware))
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue