Cristiano Pires 2 years ago
parent f8c301de6a
commit 796319b105

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