From 2abd073df738d99366a7d7bb11ac58fadade23a1 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Sat, 23 Nov 2024 11:30:38 +0100 Subject: [PATCH] fix(livesamples): fix data attribute for path (#12169) --- client/src/playground/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/playground/utils.ts b/client/src/playground/utils.ts index fe2aeb7c3eec..b7fab2b568b7 100644 --- a/client/src/playground/utils.ts +++ b/client/src/playground/utils.ts @@ -34,7 +34,7 @@ export async function initPlayIframe( const { state, hash } = await compressAndBase64Encode( JSON.stringify(editorContent) ); - const path = iframe.getAttribute("data-play-path"); + const path = iframe.getAttribute("data-live-path"); const host = PLAYGROUND_BASE_HOST.startsWith("localhost") ? PLAYGROUND_BASE_HOST : `${hash}.${PLAYGROUND_BASE_HOST}`;