From 57405dffbb6c87977766e16d078b5651dbbf281e Mon Sep 17 00:00:00 2001 From: An Orbit <68935009+orbit-loona@users.noreply.github.com> Date: Mon, 20 May 2024 01:00:07 -0400 Subject: [PATCH] minor bug fix safety check to replace prompt to stop unsightly error if user backs out --- mods/a_mod_by_alice.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/a_mod_by_alice.js b/mods/a_mod_by_alice.js index b6d185ba..7486d190 100644 --- a/mods/a_mod_by_alice.js +++ b/mods/a_mod_by_alice.js @@ -37987,6 +37987,7 @@ Make sure to save your command in a file if you want to add this preset again.` function replaceElementPrompt() { var fromElement = prompt("Enter the element you want to change"); // replace spaces with underscores + if(fromElement == null) { return }; fromElement = fromElement.replace(/ /g, "_"); fromElementS = mostSimilarElement(fromElement); if (fromElementS === null || fromElementS === undefined || fromElementS === "") {