From b97dd86f9cef505bf92eef52472f1705e4329397 Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Wed, 2 Nov 2022 18:34:05 -0400 Subject: [PATCH] Fix file callback in js --- wasm/fileTransfer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wasm/fileTransfer.go b/wasm/fileTransfer.go index 77201c52..21e43530 100644 --- a/wasm/fileTransfer.go +++ b/wasm/fileTransfer.go @@ -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 -- GitLab