Skip to content

Commit

Permalink
docs: replace client and app ids in code block preview
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Jan 15, 2025
1 parent 9699441 commit ec01d4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stories/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export const META_PARAMETERS = {
transform: (src: string) => {
const element = document.createElement("div");
element.innerHTML = src;
return element.querySelector("template")?.innerHTML;
const html = element
.querySelector("template")
?.innerHTML.replace(APP_ID, "YOUR_APP_ID")
.replace(CLIENT_ID, "YOUR_CLIENT_ID");
return html || src;
},
},
},
Expand Down

0 comments on commit ec01d4c

Please sign in to comment.