tweaked sounds on some buttons, renamed play_sound to playSound
This commit is contained in:
parent
6e2e4e0c23
commit
b9445cf832
8 changed files with 27 additions and 15 deletions
|
@ -6,12 +6,12 @@ let sounds;
|
|||
if (typeof Audio !== typeof undefined) {
|
||||
sounds = {
|
||||
"default": new Audio(sound_log),
|
||||
"post": new Audio(sound_hello),
|
||||
"boost": new Audio(sound_success),
|
||||
"post": new Audio(sound_success),
|
||||
"boost": new Audio(sound_hello),
|
||||
};
|
||||
}
|
||||
|
||||
export function play_sound(name) {
|
||||
export function playSound(name) {
|
||||
if (name === false) return;
|
||||
if (!name) name = "default";
|
||||
const sound = sounds[name];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue