From 811e1e4fab626655629cb8f3cbc4c0ed1286fd48 Mon Sep 17 00:00:00 2001
From: PeytonPlayz595 <106421860+PeytonPlayz595@users.noreply.github.com>
Date: Tue, 4 Jun 2024 13:57:15 -0400
Subject: [PATCH] change favicon, add ZXMushroom's fix
---
javascript/OfflineDownloadTemplate.txt | 5 ++++-
javascript/favicon.png | Bin 1258 -> 320 bytes
javascript/index.html | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/javascript/OfflineDownloadTemplate.txt b/javascript/OfflineDownloadTemplate.txt
index 55af2a5..1fa332d 100644
--- a/javascript/OfflineDownloadTemplate.txt
+++ b/javascript/OfflineDownloadTemplate.txt
@@ -410,6 +410,9 @@ function displayGui() {
addBtn.innerHTML = "Add new";
addBtn.addEventListener("click", () => {
var newMod = window.prompt("URL of Mod: ", "http://example.com/example.js");
+ if (!newMod) {
+ return; //User pressed cancel
+ }
Mods.push(
newMod
);
@@ -519,7 +522,7 @@ ${classes_js}
setTimeout(() => { document.getElementById("launch_countdown_screen").remove(); main(); }, 50);
}
-
+
diff --git a/javascript/favicon.png b/javascript/favicon.png
index 9c9fc8980fc3d08e489084122e80d35a80fd2705..7b7850cd65583aa166cff399c95e9eb05b96c7be 100644
GIT binary patch
literal 320
zcmV-G0l)r
+sRSbr(9J#!i6c9tR3wt6
z-1D7#edTK#falpv4EUbbYh#wv>7Zl)0oD&ruS-}dv|+W_WccHC(yK=%1BDlO^_!~2
zhJ77+K@iwL?wCJZ0I+)d1|a2;0orc_
literal 1258
zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGqB>(^xB>_oNB=7(L1b<0HK~zXfwUyZ`
zc2N|@4|1j4`V08iaL2`4h9Z(7k;sr)q+D<#V@N3_iVPP>=6RlH@Ao_B+3!B*#e3&_
zE_Q3Lz1DixUTf`hobZ2!OYrser45k$`T40WKz@IJ|M>W@N@S~%l9eq&FqB|!U=L*X
z^78Wh{45Rf{r&yJ!^6|llQeH{Z=9mx2%v#ag7|{)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~5!2kdN07*qoM6N<$f+a9Qx&QzG
diff --git a/javascript/index.html b/javascript/index.html
index 7bd5533..7b3c4bf 100644
--- a/javascript/index.html
+++ b/javascript/index.html
@@ -385,6 +385,9 @@ function displayGui() {
addBtn.innerHTML = "Add new";
addBtn.addEventListener("click", () => {
var newMod = window.prompt("URL of Mod: ", "http://example.com/example.js");
+ if (!newMod) {
+ return; //User pressed cancel
+ }
Mods.push(
newMod
);