Update store.ts

This commit is contained in:
Matthew Stratford 2021-05-31 21:48:38 +01:00
parent 54112a6391
commit eef88c9e48

View file

@ -10,6 +10,7 @@ import { ThunkAction } from "redux-thunk";
import {
mixerMiddleware,
mixerKeyboardShortcutsMiddleware,
startNewsTimer,
} from "./mixer/state";
import {
persistStore,
@ -71,4 +72,8 @@ export const persistor = persistStore(store);
export type AppDispatch = typeof store.dispatch;
export type AppThunk = ThunkAction<void, RootState, null, Action<string>>;
if (!process.env.REACT_APP_BAPSICLE_INTERFACE) {
store.dispatch(startNewsTimer() as any);
}
export default store;