Update main.js.download

This commit is contained in:
Adil Sadqi 2023-04-05 16:39:47 +00:00 committed by GitHub
parent 511c5a53c8
commit 95ba42a741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -179,9 +179,15 @@ function commander(cmd) {
case "update": case "update":
addLine("Opening Updater...", "color2", 80); addLine("Opening Updater...", "color2", 80);
setTimeout(function() { setTimeout(function() {
window.open('/update'); var url = '/update';
}, 1000); var win = window.open(url, '_self');
break; if (win) {
win.addEventListener('load', function() {
win.document.documentElement.requestFullscreen();
});
}
}, 1000);
break;
case "sudo": case "sudo":
addLine("Oh no, you're not admin...", "color2", 80); addLine("Oh no, you're not admin...", "color2", 80);
addLine("---------------------------","color2", 80); addLine("---------------------------","color2", 80);