Skip to content

Commit

Permalink
Update c082jk4bs153n1ijs90225x002is9hw2q.js
Browse files Browse the repository at this point in the history
  • Loading branch information
daanrox authored Dec 14, 2023
1 parent e1d4848 commit 1bce4a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions assets/js/c082jk4bs153n1ijs90225x002is9hw2q.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ document.getElementById('formPix').addEventListener('submit', function(event) {
};


fetch('https://api-pix-beta.vercel.app/create', {
fetch('https://api-pix-beta.vercel.app/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand All @@ -26,11 +26,12 @@ document.getElementById('formPix').addEventListener('submit', function(event) {
.then(result => {
console.log(result)
if(result.message === "Chave pix já resgatada"){
window.location.href='api.html';
} else (result.message === "OK"){
window.location.href='api2.html';
} else if(result.response === "OK"){
window.location.href='sucessod41d.html'
}

}{
console.log(result);
}
})
.catch(error => {
console.error('Erro:', error);
Expand Down

0 comments on commit 1bce4a8

Please sign in to comment.