Merge pull request #19 from ZXMushroom63/main
Fix bug where mod is added even though cancel is pressed
This commit is contained in:
commit
a250f3c00a
|
@ -112,6 +112,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
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue