Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncInit incorportation #80

Open
polonmedia opened this issue Jul 19, 2023 · 0 comments
Open

asyncInit incorportation #80

polonmedia opened this issue Jul 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@polonmedia
Copy link

Is your feature request related to a problem? Please describe.
There is a lack of asyncInit option (in the ExtendedWindow type from livechat-core)
image

feature requested: https://developers.livechat.com/updates/load-livechat-widget-on-demand

Describe the solution you'd like
Probably an update on LC api -> introducing new input [asyncInit] -> we can get LC component via @ViewChild(LiveChatWidgetComponent), so using liveChatWidgetComponent.reinitialize() in .ts code is not an issue, or everything via inputs is also fine

Describe alternatives you've considered
I tried to set (window as any).__lc.asyncInit = true; myself but to no avail -> it should be set after license etc. but before initialization and i have no control over it cause of the widget

Additional context
I need to hold loading of LC code before user agrees to cookies or anything else and i see no mention for asyncInit anywhere in the codebase here - maybe some update pretty please?

@polonmedia polonmedia added the enhancement New feature or request label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants