mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fix sound id
This commit is contained in:
parent
f16c3bed9b
commit
c5f2c05c2e
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user