From 8d42f90fd9d6fba7396f4519b398bdd40c67b995 Mon Sep 17 00:00:00 2001 From: Adil Sadqi <42699429+AdilSadqi@users.noreply.github.com> Date: Tue, 4 Apr 2023 16:32:20 +0000 Subject: [PATCH] Update main.js.download --- index_files/main.js.download | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/index_files/main.js.download b/index_files/main.js.download index 82a59a2..463c3c5 100644 --- a/index_files/main.js.download +++ b/index_files/main.js.download @@ -175,6 +175,12 @@ function commander(cmd) { setTimeout(function() { window.open('https://www.google.com'); }, 1000); + break; + case "update": + addLine("Opening Updater...", "color2", 80); + setTimeout(function() { + window.open('/update'); + }, 1000); break; case "sudo": addLine("Oh no, you're not admin...", "color2", 80); @@ -211,7 +217,7 @@ function commander(cmd) { }, 500); }, 2500); break; - case "update": + case "update1": loopLines(update, "color2 margin", 1000); setTimeout(function() { location.reload(); @@ -282,13 +288,13 @@ function commander(cmd) { newTab(phone); break; case "windows": - addLine("Starting Windows Sadqi...", "color2", 0); - setTimeout(() => { - newTab(website); - }, 2000); - break; + addLine("Starting Windows Sadqi...", "color2", 0); + setTimeout(() => { + newTab(website); + }, 2000); + break; - case "curl": + case "curl": addLine("Opening Website...", "color2", 0); newTab(curl); break;