webapp/src/index.js
function readFile(e) {
  const file = e.currentTarget.files && e.currentTarget.files[0];
  const reader = new FileReader();

  reader.onload = event => ArtBoard.loadANSI(event.target.result);
  if (file) reader.readAsText(file);
}
function readFile(e) {
  const file = e.currentTarget.files && e.currentTarget.files[0];
  const reader = new FileReader();

  reader.onload = event => ArtBoard.loadANSI(event.target.result);
  if (file) reader.readAsText(file);
}
function readFile ( e ) { const file = e . currentTarget . files && e . currentTarget . files [ 0 ] ; const reader = new FileReader ( ) ; reader . onload = event => ArtBoard . loadANSI ( event . target . result ) ; if ( file ) reader . readAsText ( file ) ; }
Init file uploader
Init file uploader