()
| 127 | }; |
| 128 | |
| 129 | private getCharacterText() { |
| 130 | const elementData = document.getElementById("downloadData"); |
| 131 | |
| 132 | if (!elementData) { |
| 133 | alert("Unable to find character data"); |
| 134 | throw new Error("Missing element downloadData"); |
| 135 | } |
| 136 | |
| 137 | const body = (elementData.textContent || "").split("#").join("\r\n").split("#").join("\r\n"); |
| 138 | return body; |
| 139 | } |
| 140 | |
| 141 | private getExportFileName() { |
| 142 | const name = this.props.npc.description.name.split(" ")[0]; |