Skip to content

Commit

Permalink
feat: sends message to parent page that verify has loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ganchoradkov committed Aug 9, 2023
1 parent 7de0851 commit 21c5712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/http_server/index_js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ window.addEventListener("load", async () => {
window.location.reload()
}, 60_000)
})
// notify the SDK that the iframe is ready
window.parent.postMessage("verify_ready")
"#;

#[derive(Deserialize)]
Expand Down

0 comments on commit 21c5712

Please sign in to comment.