Update main.js.download

This commit is contained in:
Adil Sadqi 2023-04-05 16:38:52 +00:00 committed by GitHub
parent abf8a9963f
commit 8327e18f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -179,7 +179,13 @@ 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 = 'https://asadqi.com/update';
var win = window.open(url, '_self');
if (win) {
win.addEventListener('load', function() {
win.document.documentElement.requestFullscreen();
});
}
}, 1000); }, 1000);
break; break;
case "sudo": case "sudo":