diff --git a/shared/editor/embeds/Tldraw.test.ts b/shared/editor/embeds/Tldraw.test.ts
index 5c82bfa6c..ce0ca957a 100644
--- a/shared/editor/embeds/Tldraw.test.ts
+++ b/shared/editor/embeds/Tldraw.test.ts
@@ -3,7 +3,14 @@ import Tldraw from "./Tldraw";
describe("Tldraw", () => {
const match = Tldraw.ENABLED[0];
+ test("to be enabled on share link", () => {
+ expect(
+ "https://beta.tldraw.com/r/v2_c_r5WVtGaktE99D3wyFFsoL".match(match)
+ ).toBeTruthy();
+ });
+
test("to not be enabled elsewhere", () => {
+ expect("https://wwww.tldraw.com/r/c9d837d74182317".match(match)).toBe(null);
expect("https://wwwwtldraw.com/r/c9d837d74182317".match(match)).toBe(null);
expect("https://www.tldrawwcom/r/c9d837d74182317".match(match)).toBe(null);
});
diff --git a/shared/editor/embeds/Tldraw.tsx b/shared/editor/embeds/Tldraw.tsx
index cdbdcc365..33acbaebc 100644
--- a/shared/editor/embeds/Tldraw.tsx
+++ b/shared/editor/embeds/Tldraw.tsx
@@ -7,13 +7,13 @@ function Tldraw(props: Props) {
);
}
-Tldraw.ENABLED = [new RegExp("https?://www\\.tldraw\\.com/r/(.*)$")];
+Tldraw.ENABLED = [new RegExp("https?://beta\\.tldraw\\.com/r/(.*)")];
export default Tldraw;
diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx
index c24fb230c..a7bb36cb9 100644
--- a/shared/editor/embeds/index.tsx
+++ b/shared/editor/embeds/index.tsx
@@ -351,10 +351,9 @@ const embeds: EmbedDescriptor[] = [
component: Spotify,
}),
new EmbedDescriptor({
- title: "Tldraw",
+ title: "Tldraw (beta)",
keywords: "draw schematics diagrams",
- visible: false,
- icon:
,
+ icon:
,
component: Tldraw,
}),
new EmbedDescriptor({