mirror of
https://github.com/eaglerforge/EaglerForge-old.git
synced 2025-06-01 22:30:58 -05:00
Fix bug where mod is added even though cancel is pressed
This commit is contained in:
parent
5b75a2addb
commit
43e1581482
@ -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…
x
Reference in New Issue
Block a user