Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
SridharaQweebi committed Dec 17, 2024
1 parent 84a3f11 commit 0063c69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sim/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ namespace pxsim.hare {

namespace pxsim.unity {
export function logHello(){
if (window.parent && typeof window.parent['sendMessage'] === "function") {
window.parent['sendMessage'](`SEND_MIXPANEL_EVENT:BtnClickBrowserVideoPlayerClose:VideoId:xx:Timestamp:12`)
const parent = window.parent as Record<string, any>
if (parent && typeof parent.sendMessage === "function") {
// Call the sendMessage function in the parent window
parent.sendMessage(`SEND_MIXPANEL_EVENT:BtnClickBrowserVideoPlayerClose:VideoId:xx:Timestamp:12`)
}
}
}
Expand Down

0 comments on commit 0063c69

Please sign in to comment.