mirror of
https://github.com/elder-plinius/binaural-beats-generator.git
synced 2026-05-24 16:54:02 +02:00
Update popup.js
This commit is contained in:
@@ -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