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);