Skip to content

Commit

Permalink
chore(playground): add comment to keep in sync (#12275)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo authored Dec 10, 2024
1 parent c2dc988 commit 10a8d7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/playground/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
2 changes: 2 additions & 0 deletions libs/play/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10a8d7d

Please sign in to comment.