Skip to content
Snippets Groups Projects
Commit b97dd86f authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix file callback in js

parent 67547e72
No related branches found
No related tags found
1 merge request!60Revert "Fail a test to be sure it works"
......@@ -62,9 +62,8 @@ type receiveFileCallback struct {
// Parameters:
// - payload - Returns the contents of the message. JSON of
// [bindings.ReceivedFile] (Uint8Array).
// - err - Returns an error on failure (Error).
func (rfc *receiveFileCallback) Callback(payload []byte, err error) {
rfc.callback(utils.CopyBytesToJS(payload), utils.JsTrace(err))
func (rfc *receiveFileCallback) Callback(payload []byte) {
rfc.callback(utils.CopyBytesToJS(payload))
}
// fileTransferSentProgressCallback wraps Javascript callbacks to adhere to the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment