fix: Don't share collab types with core (#3353)

* fix: Don't share collab types with core

* fix

* remove

* fix
This commit is contained in:
Aakansha Doshi
2021-03-28 19:26:03 +05:30
committed by GitHub
parent 3d047d57a7
commit 25fd275158
9 changed files with 27 additions and 18 deletions

View File

@ -60,7 +60,7 @@ describe("collaboration", () => {
]);
expect(API.getStateHistory().length).toBe(1);
});
h.collab.openPortal();
window.collab.openPortal();
await waitFor(() => {
expect(h.elements).toEqual([expect.objectContaining({ id: "A" })]);
expect(API.getStateHistory().length).toBe(1);

View File

@ -100,5 +100,5 @@ const initLocalStorage = (data: ImportedDataState) => {
};
export const updateSceneData = (data: SceneData) => {
(window.h.collab as any).excalidrawAPI.updateScene(data);
(window.collab as any).excalidrawAPI.updateScene(data);
};