Update main.js.download

This commit is contained in:
Adil Sadqi 2023-04-04 16:32:20 +00:00 committed by GitHub
parent 81fc7d5b0d
commit 8d42f90fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 7 deletions

View File

@ -175,6 +175,12 @@ function commander(cmd) {
setTimeout(function() { setTimeout(function() {
window.open('https://www.google.com'); window.open('https://www.google.com');
}, 1000); }, 1000);
break;
case "update":
addLine("Opening Updater...", "color2", 80);
setTimeout(function() {
window.open('/update');
}, 1000);
break; break;
case "sudo": case "sudo":
addLine("Oh no, you're not admin...", "color2", 80); addLine("Oh no, you're not admin...", "color2", 80);
@ -211,7 +217,7 @@ function commander(cmd) {
}, 500); }, 500);
}, 2500); }, 2500);
break; break;
case "update": case "update1":
loopLines(update, "color2 margin", 1000); loopLines(update, "color2 margin", 1000);
setTimeout(function() { setTimeout(function() {
location.reload(); location.reload();
@ -282,13 +288,13 @@ function commander(cmd) {
newTab(phone); newTab(phone);
break; break;
case "windows": case "windows":
addLine("Starting Windows Sadqi...", "color2", 0); addLine("Starting Windows Sadqi...", "color2", 0);
setTimeout(() => { setTimeout(() => {
newTab(website); newTab(website);
}, 2000); }, 2000);
break; break;
case "curl": case "curl":
addLine("Opening Website...", "color2", 0); addLine("Opening Website...", "color2", 0);
newTab(curl); newTab(curl);
break; break;