Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onEditorChange() {
const song = this.parseChordProSheet();
if (this.textPreviewer) {
this.textPreviewer.value = new ChordSheetJS.TextFormatter().format(song);
}
if (this.htmlPreviewer) {
this.htmlPreviewer.innerHTML = new ChordSheetJS.HtmlFormatter().format(song);
}
}