Skip to content

Commit

Permalink
fix: removed @cocreate/message-client
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 19, 2023
1 parent b7122fa commit 1855c15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
"@cocreate/crud-client": "^1.28.4",
"@cocreate/element-prototype": "^1.11.5",
"@cocreate/local-storage": "^1.10.5",
"@cocreate/message-client": "^1.8.3",
"@cocreate/observer": "^1.11.5",
"@cocreate/position": "^1.6.4",
"@cocreate/socket-client": "^1.31.0",
"@cocreate/uuid": "^1.7.2"
}
}
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ModalViewPort from "./viewport.js"
import uuid from '@cocreate/uuid'
import action from '@cocreate/actions';
import observer from '@cocreate/observer';
import message from '@cocreate/message-client';
import socket from '@cocreate/socket-client';
import localStorge from '@cocreate/local-storage';
import './index.css';

Expand Down Expand Up @@ -93,7 +93,7 @@ CoCreateModal.prototype = {

_initSocket: function () {
const self = this;
message.listen('modalAction', function (response) {
socket.listen('modalAction', function (response) {
self.runModalAction(response.data)
})
},
Expand Down Expand Up @@ -169,12 +169,12 @@ CoCreateModal.prototype = {
key: CoCreateConfig.key,
organization_id: CoCreateConfig.organization_id,
broadcastSender: true,
message: 'modalAction',
method: 'modalAction',
}

if (type == 'open') {
json.data = data
message.send(json);
socket.send(json);
} else {
let modalEl = btn.closest('.modal')

Expand All @@ -194,7 +194,7 @@ CoCreateModal.prototype = {
if (modal)
this.runModalAction(json.data)
else
message.send(json);
socket.send(json);
}
},

Expand Down

0 comments on commit 1855c15

Please sign in to comment.