Skip to content

Commit

Permalink
Merge pull request #8 from settle-club/feature/close-reload
Browse files Browse the repository at this point in the history
Add 'close' and 'reload' message types to handle modal interactions
  • Loading branch information
NikhilManapure authored Sep 27, 2024
2 parents 5541afe + 0d733f3 commit 81fdc3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@
if (type === "success") {
onSuccess(transaction);
close();
window.removeEventListener("message", handleMessage);
} else if (type === "failure") {
onFailure(transaction);
close();
} else if (type === "close") {
close();
} else if (type === "reload") {
window.location.reload();
}
}

Expand Down

0 comments on commit 81fdc3b

Please sign in to comment.