Skip to content

Commit

Permalink
fix: removed emit from message.send and message.listen
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Mar 22, 2022
1 parent 017ea1d commit 4943b3d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@ export function initEvents() {
messageClient.send({
broadcast_sender: false,
rooms: "",
emit: {
message: "select",
data: {
name: e.target.getAttribute('name'),
values: self.getValue(e.target)
}
},
message: "select",
data: {
name: e.target.getAttribute('name'),
values: self.getValue(e.target)
}
});
else if (isRealtime != "false")
save(e.target);
}
})

messageClient.listen('select', function(data) {
messageClient.listen('select', function(response) {
let data = response.data
let { name, values} = data;
let select = document.querySelector(`[name="${name}"]`);

Expand Down

0 comments on commit 4943b3d

Please sign in to comment.