Skip to content

Commit

Permalink
Delete function
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktoriia committed Oct 11, 2023
1 parent 0a597be commit e8be3e1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ import { Doc, Map, UndoManager } from 'yjs';
import { WebsocketProvider } from 'y-websocket';
import { TDBinding, TDShape } from '@tldraw/tldraw';

export function setCookies(name: string, value: string, path: string) {
document.cookie = `${name}=${value}; path=${path}`;
}

export function setTldrawBoardNameCookie(roomName: string) {
setCookies('SERVERID', roomName, '/');
// setCookies('SERVERID', roomName, '/tldraw');
// setCookies('SERVERID', roomName, '/static');
}

const defaultOptions = {
roomName: 'GLOBAL',
websocketUrl: 'ws://localhost:3345',
Expand Down Expand Up @@ -60,5 +50,3 @@ export function configure(options: any) {
{},
);
}

setTldrawBoardNameCookie(roomID);

0 comments on commit e8be3e1

Please sign in to comment.