Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Cleanup upload-via-browser example #720

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions examples/upload-file-via-browser/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class App extends React.Component {
// bind methods
this.captureFile = this.captureFile.bind(this)
this.saveToIpfs = this.saveToIpfs.bind(this)
this.arrayBufferToString = this.arrayBufferToString.bind(this)
this.handleSubmit = this.handleSubmit.bind(this)
}

Expand All @@ -40,10 +39,6 @@ class App extends React.Component {
})
}

arrayBufferToString (arrayBuffer) {
return String.fromCharCode.apply(null, new Uint16Array(arrayBuffer))
}

handleSubmit (event) {
event.preventDefault()
}
Expand Down