(toggle)
| 228 | // --------- |
| 229 | |
| 230 | function togglePause(toggle) { |
| 231 | const paused = store.state.paused; |
| 232 | let newValue; |
| 233 | if (typeof toggle === "boolean") { |
| 234 | newValue = toggle; |
| 235 | } else { |
| 236 | newValue = !paused; |
| 237 | } |
| 238 | |
| 239 | if (paused !== newValue) { |
| 240 | store.setState({ paused: newValue }); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | function toggleSound(toggle) { |
| 245 | if (typeof toggle === "boolean") { |
no outgoing calls
no test coverage detected