MCPcopy Create free account
hub / github.com/codecombat/codecombat / syncSoundToAudioSystem

Function syncSoundToAudioSystem

app/core/store/modules/layoutChrome.js:64–70  ·  view source on GitHub ↗
({ dispatch, state })

Source from the content-addressed store, hash-verified

62 },
63
64 syncSoundToAudioSystem ({ dispatch, state }) {
65 if (state.soundOn) {
66 dispatch('audio/unmuteAll', undefined, { root: true })
67 } else {
68 dispatch('audio/muteAll', undefined, { root: true })
69 }
70 }
71 }
72}

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected