Update main.js.download
This commit is contained in:
parent
abf8a9963f
commit
8327e18f09
|
@ -176,12 +176,18 @@ function commander(cmd) {
|
||||||
window.open('https://www.google.com');
|
window.open('https://www.google.com');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
break;
|
break;
|
||||||
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';
|
||||||
}, 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);
|
||||||
|
|
Loading…
Reference in New Issue