mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Safely handle sound settings
This commit is contained in:
1 file changed
+3
-2
@@ -20,8 +20,9 @@ export const getSoundSettings = (
|
||||
try {
|
||||
return app
|
||||
? {
|
||||
sound: getPath[type](settings[`${app}_${type}`]),
|
||||
volume: settings[`${app}_${type}Vol`] / 100,
|
||||
sound: getPath[type](settings[`${app}_${type}`] || settings[type]),
|
||||
volume:
|
||||
(settings[`${app}_${type}Vol`] || settings[`${type}Vol`]) / 100,
|
||||
}
|
||||
: {
|
||||
sound: getPath[type](settings[type]),
|
||||
|
||||
Reference in new issue
Block a user