fix structured clone reference in drawing (#2945)

This PR fixes a rogue structuredClone reference in the drawing state.

### Change Type

- [x] `patch` — Bug fix

### Release Notes

- Fixes a reference to structuredClone that caused a crash on older
browsers.
This commit is contained in:
Steve Ruiz 2024-02-24 20:02:17 +00:00 committed by GitHub
parent 0f1599d5b3
commit b2cb0d27b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 3 deletions

View file

@ -3237,7 +3237,7 @@
{
"kind": "Variable",
"canonicalReference": "@tldraw/utils!structuredClone_2:var",
"docComment": "/**\n * @public\n */\n",
"docComment": "/**\n * Create a deep copy of a value. Uses the structuredClone API if available, otherwise uses JSON.parse(JSON.stringify()).\n *\n * @param i - The value to clone.\n *\n * @public\n */\n",
"excerptTokens": [
{
"kind": "Content",