mirror of
https://github.com/elder-plinius/binaural-beats-generator.git
synced 2026-02-12 16:52:50 +00:00
Update popup.js
This commit is contained in:
2
popup.js
2
popup.js
@@ -59,7 +59,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
delta: Number(deltaSlider.value),
|
||||
volume: Number(volumeSlider.value)
|
||||
}, (response) => {
|
||||
if (response.status === 'playing') {
|
||||
if (response && response.status === 'playing') {
|
||||
playPauseButton.textContent = 'Pause';
|
||||
} else {
|
||||
playPauseButton.textContent = 'Play';
|
||||
|
||||
Reference in New Issue
Block a user