mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
21 lines
393 B
JavaScript
21 lines
393 B
JavaScript
import * as actions from '../constants/debug';
|
|
|
|
const initialState = {
|
|
plugins: false,
|
|
};
|
|
|
|
export default function DEBUG(state = initialState, action) {
|
|
switch (action.type) {
|
|
case actions.ENABLE_PLUGINS_DEBUG:
|
|
return {
|
|
plugins: true,
|
|
};
|
|
case actions.DISABLE_PLUGINS_DEBUG:
|
|
return {
|
|
plugins: false,
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
}
|