Skip to content

Commit

Permalink
fix: Modal sendMessage to parent
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jun 9, 2021
1 parent af87349 commit 304c015
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,22 @@ CoCreateWindow.prototype = {

sendWindowBtnEvent: function(type) {
var json = {
"apiKey": config.apiKey,
"securityKey": config.securityKey,
"organization_id": config.organization_Id,
"data": {
"parentId": this.parentId,
"pageId": this.pageId,
"type": type,
"author": "jin"
apiKey: config.apiKey,
securityKey: config.securityKey,
organization_id: config.organization_Id,
broadcast_sender: true,
"emit": {
message: 'windowBtnEvent',
data: {
"parentId": this.parentId,
"pageId": this.pageId,
"type": type,
"author": "jin"
}
}
}

message.send('windowBtnEvent', json);
message.send(json);
},

_initSocket: function() {
Expand Down

0 comments on commit 304c015

Please sign in to comment.