Skip to content

Commit

Permalink
remove hash value creation for document
Browse files Browse the repository at this point in the history
  • Loading branch information
bergatco committed Nov 19, 2024
1 parent 9df8506 commit 68b44b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/assets/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/core.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/md5.js"></script>
<title>tldraw</title>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useMultiplayerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ export function useMultiplayerState({
console.log("yBindingsObj", yBindingsObj);
console.log("yAssetsObj", yAssetsObj);
console.log("doc", doc);
const hash = CryptoJS.MD5(doc).toString();
console.log("docHash", hash);
// const hash = crypto.MD5(doc).toString();
// console.log("docHash", hash);

app.replacePageContent(yShapesObj, yBindingsObj, yAssetsObj);
};
Expand Down

0 comments on commit 68b44b1

Please sign in to comment.