CIELO-la / loteria

A lotería game with multi-language support focused on enabling play in indigenous languages
6 stars 2 forks source link

[Safari] Audio does not play #51

Closed streats closed 1 year ago

streats commented 1 year ago

Steps to repro:

  1. In Safari, load http://loteria-cielo.herokuapp.com
  2. Select "Crear juego" / "Create game", then "Iniciar" / "Start"
  3. Cards will appear but no audio plays

I've only been able to repro this in Safari (latest version, 15.6.1) on Mac OS.

The following error loads when first loading the game homepage:

[Log] [HMR] Waiting for update signal from WDS... (vendors~main.chunk.js, line 174816)
[Warning] src/App/Juego/Sound.js (vendors~main.chunk.js, line 131910)
  Line 6:6:  React Hook useEffect has a missing dependency: 'playAudio'. Either include it or remove the dependency array. If 'playAudio' changes too often, find the parent component that defines it and wrap that definition in useCallback  react-hooks/exhaustive-deps

src/App/Sala/index.js
  Line 17:10:  'salaCode' is assigned a value but never used                                                                                                                                                                                                                                                                                                                             no-unused-vars
  Line 82:13:  The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid

src/App/Sitio/Cabecera.js
  Line 1:10:  'barajas' is defined but never used  no-unused-vars

src/App/index.js
  Line 66:70:  'mensaje' is assigned a value but never used  no-unused-vars