Skip to content
Snippets Groups Projects
Commit 4a09d021 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

DM PublicKey was not being copied into JS properly

parent 26724b79
No related branches found
No related tags found
No related merge requests found
......@@ -262,7 +262,7 @@ func (dmc *DMClient) GetID(js.Value, []js.Value) any {
// Returns:
// - Public key (Uint8Array).
func (dmc *DMClient) GetPublicKey(js.Value, []js.Value) any {
return dmc.api.GetPublicKey()
return utils.CopyBytesToJS(dmc.api.GetPublicKey())
}
// GetToken returns the DM token of this client.
......
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