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

Commit 43d1c1a

Browse files
Bruno Barbieridaviddias
Bruno Barbieri
authored andcommitted
docs: arrayBufferToString not needed on upload example (#720)
1 parent 4dba847 commit 43d1c1a

File tree

1 file changed

+0
-5
lines changed
  • examples/upload-file-via-browser/src

1 file changed

+0
-5
lines changed

examples/upload-file-via-browser/src/App.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class App extends React.Component {
1313
// bind methods
1414
this.captureFile = this.captureFile.bind(this)
1515
this.saveToIpfs = this.saveToIpfs.bind(this)
16-
this.arrayBufferToString = this.arrayBufferToString.bind(this)
1716
this.handleSubmit = this.handleSubmit.bind(this)
1817
}
1918

@@ -40,10 +39,6 @@ class App extends React.Component {
4039
})
4140
}
4241

43-
arrayBufferToString (arrayBuffer) {
44-
return String.fromCharCode.apply(null, new Uint16Array(arrayBuffer))
45-
}
46-
4742
handleSubmit (event) {
4843
event.preventDefault()
4944
}

0 commit comments

Comments
 (0)