livechat / angular-livechat

⚠️ DEPRECATED ⚠️ Package no longer supported. Please use @livechat/widget-angular instead.
MIT License
25 stars 19 forks source link

Unable to access LC_API #11

Closed dexbytesmanish closed 5 years ago

dexbytesmanish commented 5 years ago

I want to access LC_API events to perform some actions on callback functions but I don't have access to LC_API.

lukiq commented 5 years ago

Could you show me how do you try to access LC_API?

Have you checked our documentation: https://developers.livechatinc.com/docs/js-api/#on-before-load?

dexbytesmanish commented 5 years ago

This is working for me now.

On Mon, Jan 14, 2019 at 2:39 PM lukiq notifications@github.com wrote:

Could you show me how do you try to access LC_API?

Have you checked our documentation: https://developers.livechatinc.com/docs/js-api/#on-before-load?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/livechat/angular-livechat/issues/11#issuecomment-453938200, or mute the thread https://github.com/notifications/unsubscribe-auth/AlP6Zdh1d0iVqyPCa4s-nxknSXvdOeKGks5vDElOgaJpZM4Z9u3R .

rmcsharry commented 5 years ago

@dexbytesmanish How did you get it to work?

I keep getting error from typescript:

LC_API.set_visitor_email is not a function at SafeSubscriber._next

and from JS "is not a function"

MichalPaszowski commented 5 years ago

Hi,

We apologise that you had to wait so long for a response. We have prepared a new version of our library. This repository has been updated and the library can be found on NPM https://www.npmjs.com/package/@livechat/angular-widget.

Please give it a try and if necessary open new issue.