Browse Source

Fix "None" in the selection box causing an error

master
Fen Dweller 6 years ago
parent
commit
a776f94ad6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      macrovision.js

+ 1
- 1
macrovision.js View File

@@ -1454,7 +1454,7 @@ document.addEventListener("DOMContentLoaded", () => {

window.addEventListener("unload", () => saveScene("autosave"));
document.querySelector("#options-selected-entity").addEventListener("input", e => {
if (e.target.value == "none") {
if (e.target.value == "None") {
deselect()
} else {
select(document.querySelector("#entity-" + e.target.value));


Loading…
Cancel
Save