mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 08:15:41 -08:00
Make every URL the console page uses page-relative, guarded by a source test
AI Assisted
This commit is contained in:
1 parent
4ced32be5c
commit
1d007737b1
47 files changed
+401
-202
No files matched your search
@@ -39,7 +39,7 @@ export const soundOn = (event) => looks.sound && looks[soundKey(event)];
|
||||
const soundPath = (event) =>
|
||||
PICKABLE_SOUNDS.includes(event) && looks[soundFileKey(event)] ? `sounds/${looks[soundFileKey(event)]}` : SOUND_EVENTS[event].file;
|
||||
|
||||
const audioFor = (path) => (SOUNDS[path] ||= new Audio(`/${path}.mp3`));
|
||||
const audioFor = (path) => (SOUNDS[path] ||= new Audio(`${path}.mp3`));
|
||||
|
||||
// The Audio a cue last played, so a pick changed mid-sound still stops the right one.
|
||||
const soundAudio = (event) => SOUNDS[playingPath[event] || soundPath(event)];
|
||||
|
||||
Reference in new issue
Block a user