()
| 742 | } |
| 743 | |
| 744 | function serializeButtonHandler(): void { |
| 745 | const output = addons.serialize.instance.serialize(); |
| 746 | const outputString = JSON.stringify(output); |
| 747 | |
| 748 | document.getElementById('serialize-output').innerText = outputString; |
| 749 | if ((document.getElementById('write-to-terminal') as HTMLInputElement).checked) { |
| 750 | term.reset(); |
| 751 | term.write(output); |
| 752 | } |
| 753 | } |
| 754 | |
| 755 | function htmlSerializeButtonHandler(): void { |
| 756 | const output = addons.serialize.instance.serializeAsHTML(); |