Skip to content

Commit

Permalink
feat: params are base64 encoded (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ipso authored Apr 24, 2022
1 parent b9766da commit 2c53117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetchStoryHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const fetchStoryHtml = async (
} = {
_storyFileName: context.parameters.fileName,
_drupalTheme: context.globals.drupalTheme || context.parameters.drupalTheme,
_params: JSON.stringify(params),
_params: btoa(unescape(encodeURIComponent(JSON.stringify(params)))),
};
if (variant) {
init._variant = variant;
Expand Down

0 comments on commit 2c53117

Please sign in to comment.