chore: show reboot button on update

This commit is contained in:
Rudra Saraswat 2024-02-09 23:24:53 +05:30
parent 1840bdab95
commit 11bd0c28b4

View file

@ -22,8 +22,11 @@ function check_system_update() {
document.getElementById('update-btn').onclick = () => {
require('child_process').spawnSync('reboot')
}
document.getElementById('update-btn').textContent = 'Reboot'
document.getElementById('update-btn').disabled = false
return;
}
let start_update_worker = new Worker(
`data:text/javascript,