Skip to content

Commit

Permalink
ensure audio is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarcloud committed Jun 4, 2024
1 parent 82d823b commit 63302ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/home-lcars.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export default class HomeLCARSPageController {
const okAudio = document.getElementById('beep-ok-audio')
const cancelAudio = document.getElementById('beep-cancel-audio')

const buttonEffects = (evtName, el, muted) => {
if (okAudio instanceof HTMLAudioElement === false || cancelAudio instanceof HTMLAudioElement === false)
throw new Error("This page is wrong")

Check failure on line 22 in controllers/home-lcars.js

View workflow job for this annotation

GitHub Actions / build

Strings must use singlequote

const buttonEffects = (evtName, _el, muted) => {
// Audio
if (muted)
return
Expand Down

0 comments on commit 63302ff

Please sign in to comment.