Skip to content

Commit

Permalink
fix: import paths using npm
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Mar 30, 2021
1 parent 100ed36 commit 04f7878
Showing 1 changed file with 5 additions and 5 deletions.
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 ModalContainer from "./container.js"
import { generateUUID, ModalStorage } from "./utils.js"
import observer from '@cocreate/observer';
import utils from '@cocreate/utils';
import {socket, crud} from '@cocreate/cocreatejs';
import message from '@cocreate/message';
import './CoCreate-modal.css';

function CoCreateWindow(id) {
Expand Down Expand Up @@ -109,12 +109,12 @@ CoCreateWindow.prototype = {
}
}

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

_initSocket: function() {
var _this = this;
socket.listen('openWindow', function(data) {
message.listen('openWindow', function(data) {
if (data.parentId == _this.pageId) {
_this.container._createModal(data);
}
Expand All @@ -123,7 +123,7 @@ CoCreateWindow.prototype = {
// }
}),

socket.listen('windowBtnEvent', function(data) {
message.listen('windowBtnEvent', function(data) {
if (data.parentId == _this.pageId) {

var pageId = data.pageId;
Expand Down Expand Up @@ -204,7 +204,7 @@ CoCreateWindow.prototype = {
}
} else {
// attr.parentId = this.parentId;
socket.send('openWindow', {
message.send('openWindow', {
"apiKey": config.apiKey,
"securityKey": config.securityKey,
"organization_id": config.organization_Id,
Expand Down

0 comments on commit 04f7878

Please sign in to comment.