v1.1.2 - Fixed a softlock at the last argument
This commit is contained in:
parent
66b42f0c83
commit
f382571cfa
|
@ -3525,7 +3525,7 @@ var newItem = "Love is, despite suffering, ultimately good.";
|
||||||
inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists");
|
inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists");
|
||||||
|
|
||||||
if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) {
|
if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) {
|
||||||
inventory.splice(inventory.indexOf("Love is a wild, ultimately transient state."), 1); // 2nd parameter means remove one item only
|
inventory.splice(inventory.indexOf("Love is, despite suffering, ultimately good."), 1);
|
||||||
}
|
}
|
||||||
[continued]
|
[continued]
|
||||||
|
|
||||||
|
|
|
@ -3506,7 +3506,7 @@ var newItem = "Love is, despite suffering, ultimately good.";
|
||||||
inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists");
|
inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists");
|
||||||
|
|
||||||
if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) {
|
if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) {
|
||||||
inventory.splice(inventory.indexOf("Love is a wild, ultimately transient state."), 1); // 2nd parameter means remove one item only
|
inventory.splice(inventory.indexOf("Love is, despite suffering, ultimately good."), 1);
|
||||||
}
|
}
|
||||||
[continued]
|
[continued]
|
||||||
|
|
Loading…
Reference in New Issue