more formatting

This commit is contained in:
Christopher committed 2021-03-02 20:45:41 +01:00
1 parent 046447b0fb
commit f552c1212c
157 files changed
+635 -1579

No files matched your search

+2 -3
View File
@@ -15,14 +15,13 @@ const getPath = {
export const getSoundSettings = (
type: 'ringtone' | 'notification',
settings: IPhoneSettings,
app?: string
app?: string,
) => {
try {
return app
? {
sound: getPath[type](settings[`${app}_${type}`] || settings[type]),
volume:
(settings[`${app}_${type}Vol`] || settings[`${type}Vol`]) / 100,
volume: (settings[`${app}_${type}Vol`] || settings[`${type}Vol`]) / 100,
}
: {
sound: getPath[type](settings[type]),