From a55f16e50df27499adcb73aefe8577c8b7f1a338 Mon Sep 17 00:00:00 2001 From: Maarten van Heusden <50550545+mmvanheusden@users.noreply.github.com> Date: Tue, 26 Dec 2023 12:39:21 +0100 Subject: [PATCH] feat: add second .net info banner --- downloader.js | 4 ++++ index.html | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/downloader.js b/downloader.js index f93b775c..1921df73 100644 --- a/downloader.js +++ b/downloader.js @@ -30,6 +30,7 @@ function submitForm() { preDownloadCheck().then(async function () { //console.log(terminal[1][0]) document.getElementById("dotnetwarning").hidden = true + document.getElementById("dotnetwarning2").hidden = true document.getElementById("emptywarning").hidden = true console.info("dotnet found in PATH") // create variables for the form values @@ -87,10 +88,12 @@ function submitForm() { }).catch(function (error) { if (error === "noDotnet") { // if dotnet is not found, show the dotnet warning + document.getElementById("dotnetwarning2").hidden = true document.getElementById("emptywarning").hidden = true document.getElementById("dotnetwarning").hidden = false } else if (error === "emptyField") { // if a required field is empty, show the empty field warning + document.getElementById("dotnetwarning2").hidden = true document.getElementById("dotnetwarning").hidden = true document.getElementById("emptywarning").hidden = false } @@ -106,6 +109,7 @@ function openRelevantPage(target) { switch (target) { case "dotnet": document.getElementById("dotnetwarning").hidden = true + document.getElementById("dotnetwarning2").hidden = false if (os.includes("win")) { console.debug("Opened .NET download page for " + os.charAt(0).toUpperCase() + os.slice(1)) void electron.shell.openExternal("https://aka.ms/dotnet/6.0/dotnet-sdk-win-x64.exe") diff --git a/index.html b/index.html index 5b410c35..06ff713b 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,16 @@ Please fill in all required fields. + +
Steam Depot Downloader