From 8327e18f09bc698b67a4fcc10ac1e41b218d9fde Mon Sep 17 00:00:00 2001 From: Adil Sadqi <42699429+AdilSadqi@users.noreply.github.com> Date: Wed, 5 Apr 2023 16:38:52 +0000 Subject: [PATCH] Update main.js.download --- index_files/main.js.download | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/index_files/main.js.download b/index_files/main.js.download index 463c3c5..5b79e66 100644 --- a/index_files/main.js.download +++ b/index_files/main.js.download @@ -176,12 +176,18 @@ function commander(cmd) { window.open('https://www.google.com'); }, 1000); break; - case "update": + case "update": addLine("Opening Updater...", "color2", 80); setTimeout(function() { - window.open('/update'); - }, 1000); - break; + var url = 'https://asadqi.com/update'; + var win = window.open(url, '_self'); + if (win) { + win.addEventListener('load', function() { + win.document.documentElement.requestFullscreen(); + }); + } + }, 1000); + break; case "sudo": addLine("Oh no, you're not admin...", "color2", 80); addLine("---------------------------","color2", 80);