How do I access Web Widget API commands in my React App?
2022년 10월 19일에 게시됨
Stupid question - I know. But how do I access commands like zE('messenger', 'open'); straight from my react app?
All of those commands are perfectly accessible via console in dev tools. But when I try to access them in my React app functions. It doesn't work.
I basically need this to work:
<button onClick={() =>
zE('messenger', 'open')
}>Open chat window</button>But it keeps saying i dont have zE defined. Yet it works in the console.. Ahh
Thanks!
0
1
댓글 1개
Tipene Hughes
Hey Jiří Štěpánek,
Can you try calling the zE method against the window object and see if that works for you? i.e:
0
댓글을 남기려면 로그인하세요.