Giter Site home page Giter Site logo

Comments (6)

wilsonwong13 avatar wilsonwong13 commented on August 19, 2024

Is there any documentation how
window.postMessage( { message: dateValue, type: "chasitor.sendMessage" }, window.parent.location.href );
works? I can't find anything at the moment

from chat-lightning-web-component-pack.

erocheleau avatar erocheleau commented on August 19, 2024

Me neither, looks like a spoof of what the actual chat window receives as an event when the customer sends a chat message?

from chat-lightning-web-component-pack.

wilsonwong13 avatar wilsonwong13 commented on August 19, 2024

@erocheleau Have you looked at the user guide yet? https://quip.com/WM7AA3tXRsaf

from chat-lightning-web-component-pack.

erocheleau avatar erocheleau commented on August 19, 2024

I have found it afterwards yes, my bad.

But is there no other way to support this? As someone who wants to distribute a managed package using this feature, it is not really realistic to ask every client to copy a JS snippet in the header of their community.

You can close this as it isn't really related to this package anymore, but perhaps you could add that quip link to the readme?

from chat-lightning-web-component-pack.

forcePanda avatar forcePanda commented on August 19, 2024

Is there any other way to post the message as chasitor from the LWC to the bot?
I don't want to do:
window.postMessage({ message: dateValue, type: "chasitor.sendMessage" }, window.parent.location.href );

And use the script in the community page header.

from chat-lightning-web-component-pack.

erocheleau avatar erocheleau commented on August 19, 2024

This issue was resolved after reading the documentation :)

from chat-lightning-web-component-pack.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.