Make notification sounds configurable

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-02 23:45:08 +02:00
parent c7c4a76b33
commit dc7b51b38a
21 changed files with 62 additions and 14 deletions
+9 -1
View File
@@ -8,7 +8,8 @@ const initialState =
resolution : window.config.defaultResolution || 'medium',
lastN : 4,
permanentTopBar : true,
hiddenControls : false
hiddenControls : false,
notificationSounds : true
};
const settings = (state = initialState, action) =>
@@ -65,6 +66,13 @@ const settings = (state = initialState, action) =>
return { ...state, hiddenControls };
}
case 'TOGGLE_NOTIFICATION_SOUNDS':
{
const notificationSounds = !state.notificationSounds;
return { ...state, notificationSounds };
}
case 'SET_VIDEO_RESOLUTION':
{
const { resolution } = action.payload;