Prevent iframe embedding for dotcom (except on tldraw.com) (#2947)

This PR fixes a check on whether the dot com multiplayer editor has been
loaded in an iframe.

It tries to keep it working on tldraw.com itself.

### Change Type

- [x] `patch` — Bug fix

### Test Plan

1. Load me in an iframe
This commit is contained in:
Steve Ruiz 2024-02-26 18:30:55 +00:00 committed by GitHub
parent 4c1425076e
commit 6d417577be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 299 additions and 137 deletions

View file

@ -45,7 +45,7 @@ export async function writeCodeFile(
const formattedCode = await prettier.format(
`
// This file is automatically generated by ${generator}.
// Do not edit manually.
// Do not edit manually. Or do, I'm a comment, not a cop.
${code}
`,