Skip to content

Instantly share code, notes, and snippets.

@pbzona pbzona/index.js
Created Apr 20, 2018

Embed
What would you like to do?
Displaying success or error page
fetch(lambdaRequest)
.then(response => {
window.location.replace('https://yoursite.com/success-page');
})
.catch(err => {
window.location.replace('https://yoursite.com/error-page');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.