calibreapp/react-live-chat-loader

[Feature Request] Implementing FrontChat Provider

IlirEdis opened this issue · 3 comments

What problem would this feature solve?

Implement FrontChat Provider

Describe the solution you’d like to see

While trying to add FrontChat as a new provider i get Uncaught TypeError: window.FrontChat is not a function even though FrontChat script is loaded and added to the window object.

Heres my fork: https://github.com/IlirEdis/react-live-chat-loader

and below some screenshots of the error:

Screenshot 2023-11-27 at 10 46 41 Screenshot 2023-11-27 at 10 46 56

Are you willing to work on implementing this solution?

Yes

Describe alternatives you’ve considered

No response

Additional context

I'd like to have your help on implementing FrontChat as a new provider if you like to, of course.

Also after we finish this i'd like to contribute on updating Nextjs to the latest version with AppRouter.

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Hey @IlirEdis, happy to help debug and get your contribution eventually merged. Could you create a pull request? That way there will be a preview deployment of the preview website, which we can use to debug. We can also perform code review 👍

Have you verified that Front's .js is being loaded correctly?

Hi @benschwarz, just noticed i wasn't loading the script properly.
Thanks for the hint! Now it works as i am noticing.
Please review my code and let me know then i will get back to style the icon.
PR created.

@IlirEdis thanks for your work on getting Front support added 🙌

Happy to report that #345 is out with our latest release (2.9.1)