Skip to content

Commit

Permalink
clear debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hxhxhx88 committed Jan 22, 2024
1 parent 642b948 commit dc775ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/frontend/src/state/server/annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,14 @@ export const useGetVideoAnnotationV2 = (id: Video['id']) =>
url.searchParams.set('doc', id);
const res = await fetch(url.toString());
const clientToken = await res.json();
console.log(clientToken);

// create a Yjs document and connect it to the Y-Sweet server
const doc = new Y.Doc();
createYjsProvider(doc, clientToken, {disableBc: true});

const anno = doc.getMap('annotation');
console.log(111);
const annoJson = await new Promise<string>(resolve => {
console.log(333);
anno.observe(() => {
console.log(222);
resolve(JSON.stringify(anno.toJSON()));
});
});
Expand Down

0 comments on commit dc775ef

Please sign in to comment.