Skip to content

Commit

Permalink
Encode checkbox settings in playground (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrooChu authored and epicfaace committed Aug 18, 2019
1 parent 21976bc commit df8499c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions playground/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,14 @@ class App extends Component {
this.setState({ formData, shareURL: null });

onShare = () => {
const { formData, schema, uiSchema } = this.state;
const { formData, schema, uiSchema, liveSettings } = this.state;
const {
location: { origin, pathname },
} = document;
try {
const hash = btoa(JSON.stringify({ formData, schema, uiSchema }));
const hash = btoa(
JSON.stringify({ formData, schema, uiSchema, liveSettings })
);
this.setState({ shareURL: `${origin}${pathname}#${hash}` });
} catch (err) {
this.setState({ shareURL: null });
Expand Down

0 comments on commit df8499c

Please sign in to comment.