(map)
| 18 | } |
| 19 | |
| 20 | closeDropdown(map) { |
| 21 | this.setState({ isDropdownOpen: null }); |
| 22 | map = require("../assets/maps/" + map); |
| 23 | fetch(map) |
| 24 | .then((r) => r.text()) |
| 25 | .then((text) => this.parseMap(text)); |
| 26 | } |
| 27 | |
| 28 | uploadMap(e) { |
| 29 | var file = e.target.files[0]; |