fix sound id

This commit is contained in:
SrGooglo 2023-10-12 19:57:33 +00:00
parent 091c558991
commit bbd909488d

View File

@ -75,7 +75,7 @@ export default class SoundCore extends Core {
// if button exist and has aria-checked attribute then play switch_on or switch_off
if (button) {
if (button.hasAttribute("aria-checked")) {
return this.public.useUIAudio(button.getAttribute("aria-checked") === "true" ? "component.slider_down" : "component.slider_up")
return this.public.useUIAudio(button.getAttribute("aria-checked") === "true" ? "component.switch_off" : "component.switch_on")
}
return this.public.useUIAudio("generic_click")