From 95ba42a7411b9f2c3c9a2dbae1d108d678aee2c3 Mon Sep 17 00:00:00 2001 From: Adil Sadqi <42699429+AdilSadqi@users.noreply.github.com> Date: Wed, 5 Apr 2023 16:39:47 +0000 Subject: [PATCH] Update main.js.download --- index_files/main.js.download | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index_files/main.js.download b/index_files/main.js.download index 463c3c5..ce3aef5 100644 --- a/index_files/main.js.download +++ b/index_files/main.js.download @@ -179,9 +179,15 @@ function commander(cmd) { case "update": addLine("Opening Updater...", "color2", 80); setTimeout(function() { - window.open('/update'); - }, 1000); - break; + var url = '/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);