chore: show reboot button on update
This commit is contained in:
parent
1840bdab95
commit
11bd0c28b4
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue