Skip to content

Instantly share code, notes, and snippets.

@heijmerikx
Last active May 28, 2021 12:32
Embed
What would you like to do?
const LCM = {
   sendMessage : function(userMessage) {
       if (typeof LCC !== "undefined" && typeof LCC.onlineSupport !== "undefined") {       LCC.onlineSupport.sendMessage("containerUserMessage", {payload: userMessage});       }
   },
   addMessageHandler : function(handler) {
       if (typeof LCC !== "undefined" && typeof LCC.onlineSupport !== "undefined") {
           LCC.onlineSupport.addMessageHandler(handler);
       }
   },
}
export default LCM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment