Skip to content

Commit

Permalink
Docs: Prevent JSON-encoding example Blueprints twice – that breaks th…
Browse files Browse the repository at this point in the history
…e live examples

Closes #924
  • Loading branch information
adamziel committed Mar 21, 2024
1 parent fefd010 commit 37b2251
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function BlueprintRunButton({ blueprint }) {
);
}
const url = `https://playground.wordpress.net/?mode=seamless#${btoa(
JSON.stringify(blueprint)
typeof blueprint === 'string' ? blueprint : JSON.stringify(blueprint)
)}`;
return (
<iframe
Expand Down

0 comments on commit 37b2251

Please sign in to comment.