Update store.ts
This commit is contained in:
parent
54112a6391
commit
eef88c9e48
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,7 @@ import { ThunkAction } from "redux-thunk";
|
||||||
import {
|
import {
|
||||||
mixerMiddleware,
|
mixerMiddleware,
|
||||||
mixerKeyboardShortcutsMiddleware,
|
mixerKeyboardShortcutsMiddleware,
|
||||||
|
startNewsTimer,
|
||||||
} from "./mixer/state";
|
} from "./mixer/state";
|
||||||
import {
|
import {
|
||||||
persistStore,
|
persistStore,
|
||||||
|
@ -71,4 +72,8 @@ export const persistor = persistStore(store);
|
||||||
export type AppDispatch = typeof store.dispatch;
|
export type AppDispatch = typeof store.dispatch;
|
||||||
export type AppThunk = ThunkAction<void, RootState, null, Action<string>>;
|
export type AppThunk = ThunkAction<void, RootState, null, Action<string>>;
|
||||||
|
|
||||||
|
if (!process.env.REACT_APP_BAPSICLE_INTERFACE) {
|
||||||
|
store.dispatch(startNewsTimer() as any);
|
||||||
|
}
|
||||||
|
|
||||||
export default store;
|
export default store;
|
||||||
|
|
Loading…
Reference in a new issue