Setting to disable notifications, fixes #306
This commit is contained in:
@@ -16,6 +16,7 @@ const initialState =
|
||||
lastN : 4,
|
||||
permanentTopBar : true,
|
||||
hiddenControls : false,
|
||||
showNotifications : true,
|
||||
notificationSounds : true,
|
||||
...window.config.defaultAudio
|
||||
};
|
||||
@@ -158,6 +159,13 @@ const settings = (state = initialState, action) =>
|
||||
return { ...state, notificationSounds };
|
||||
}
|
||||
|
||||
case 'TOGGLE_SHOW_NOTIFICATIONS':
|
||||
{
|
||||
const showNotifications = !state.showNotifications;
|
||||
|
||||
return { ...state, showNotifications };
|
||||
}
|
||||
|
||||
case 'SET_VIDEO_RESOLUTION':
|
||||
{
|
||||
const { resolution } = action.payload;
|
||||
|
||||
Reference in New Issue
Block a user