Cristiano Pires 2 years ago
parent f8c301de6a
commit 796319b105

@ -136,10 +136,13 @@ async function requestChange()
.then(result => result.json())
.then(res =>
{
let music = document.getElementById('music')
music.textContent = res.music? 'check_box' :'check_box_outline_blank';
let strikes = document.getElementById('strikes')
strikes.textContent = res.strikes? 'check_box' :'check_box_outline_blank';
if(!res.error)
{
let music = document.getElementById('music')
music.textContent = res.music? 'check_box' :'check_box_outline_blank';
let strikes = document.getElementById('strikes')
strikes.textContent = res.strikes? 'check_box' :'check_box_outline_blank';
}
})
.catch(console.error);
}
Loading…
Cancel
Save