{"action":"created","issue":{"url":"https://api.github.com/repos/formspree/formspree/issues/148","repository_url":"https://api.github.com/repos/formspree/formspree","labels_url":"https://api.github.com/repos/formspree/formspree/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/formspree/formspree/issues/148/comments","events_url":"https://api.github.com/repos/formspree/formspree/issues/148/events","html_url":"https://github.com/formspree/formspree/pull/148","id":230423859,"number":148,"title":"Store data in session storage for reloading page","user":{"login":"rohitdatta","id":6260066,"avatar_url":"https://avatars1.githubusercontent.com/u/6260066?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitdatta","html_url":"https://github.com/rohitdatta","followers_url":"https://api.github.com/users/rohitdatta/followers","following_url":"https://api.github.com/users/rohitdatta/following{/other_user}","gists_url":"https://api.github.com/users/rohitdatta/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitdatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitdatta/subscriptions","organizations_url":"https://api.github.com/users/rohitdatta/orgs","repos_url":"https://api.github.com/users/rohitdatta/repos","events_url":"https://api.github.com/users/rohitdatta/events{/privacy}","received_events_url":"https://api.github.com/users/rohitdatta/received_events","type":"User","site_admin":false},"labels":[{"id":157002211,"url":"https://api.github.com/repos/formspree/formspree/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-22T14:58:50Z","updated_at":"2017-05-23T13:50:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/formspree/formspree/pulls/148","html_url":"https://github.com/formspree/formspree/pull/148","diff_url":"https://github.com/formspree/formspree/pull/148.diff","patch_url":"https://github.com/formspree/formspree/pull/148.patch"},"body":"**Fixes error when reloading reCAPTCHA page.**\r\n\r\n**Changes proposed in this pull request:**\r\n\r\n* Store the data in session storage on reCAPTCHA page to prevent empty data.\r\n\r\n**Have you made sure to add:**\r\n- [X] Tests\r\n- [ ] Documentation\r\n\r\n**Screenshots and GIFs**\r\n\r\nNone.\r\n\r\n**Deploy notes**\r\n\r\nNone necessary.\r\n\r\n**Any Additional Information**\r\nCurrently, if the user has the HSTS policy set on their browser, if they submit to the HTTP version of Formspree and reload the reCAPTCHA page, it loses the data. A very niche scenario, but operating under the assumption that the HSTS is set for our users, this will store the data in [session storage](https://developer.mozilla.org/en/docs/Web/API/Window/sessionStorage). Upon loading, it will check if data exists in session storage. Right before submitting, it will remove the data from session storage."},"comment":{"url":"https://api.github.com/repos/formspree/formspree/issues/comments/303404174","html_url":"https://github.com/formspree/formspree/pull/148#issuecomment-303404174","issue_url":"https://api.github.com/repos/formspree/formspree/issues/148","id":303404174,"user":{"login":"fiatjaf","id":1653275,"avatar_url":"https://avatars2.githubusercontent.com/u/1653275?v=3","gravatar_id":"","url":"https://api.github.com/users/fiatjaf","html_url":"https://github.com/fiatjaf","followers_url":"https://api.github.com/users/fiatjaf/followers","following_url":"https://api.github.com/users/fiatjaf/following{/other_user}","gists_url":"https://api.github.com/users/fiatjaf/gists{/gist_id}","starred_url":"https://api.github.com/users/fiatjaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiatjaf/subscriptions","organizations_url":"https://api.github.com/users/fiatjaf/orgs","repos_url":"https://api.github.com/users/fiatjaf/repos","events_url":"https://api.github.com/users/fiatjaf/events{/privacy}","received_events_url":"https://api.github.com/users/fiatjaf/received_events","type":"User","site_admin":false},"created_at":"2017-05-23T13:50:46Z","updated_at":"2017-05-23T13:50:46Z","body":"I think everything is good. Can I merge it?"}}
{"actor":{"display_login":"fiatjaf"}}