From 82438a493842150bf6779f3ae365d490fe58bd52 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Tue, 10 Dec 2024 11:31:03 +0100 Subject: [PATCH] chore(playground): add comment to keep in sync --- client/src/playground/utils.ts | 3 +++ libs/play/index.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/client/src/playground/utils.ts b/client/src/playground/utils.ts index ee0f5699e9f5..dc053d6d8ba4 100644 --- a/client/src/playground/utils.ts +++ b/client/src/playground/utils.ts @@ -92,6 +92,9 @@ function base64ToBytes(base64: string): ArrayBuffer { return bytes.buffer; } +/* + * This is the browser verision of `libs/play/index.js`. Keep in sync! + */ export async function decompressFromBase64(base64String: string) { if (!base64String) { return { state: null, hash: null }; diff --git a/libs/play/index.js b/libs/play/index.js index fe9e7976042d..df11deeb46f8 100644 --- a/libs/play/index.js +++ b/libs/play/index.js @@ -261,6 +261,8 @@ export function renderHtml(state = null) { /** * @param {string | null} base64String + * + * This is the Node.js version of `client/src/playground/utils.ts`. Keep in sync! */ export async function decompressFromBase64(base64String) { if (!base64String) {