Skip to content

Instantly share code, notes, and snippets.

@heijmerikx
Last active May 28, 2021 12:32
Show Gist options
  • Save heijmerikx/4b575410c4acfde3208265b53e3d0e00 to your computer and use it in GitHub Desktop.
Save heijmerikx/4b575410c4acfde3208265b53e3d0e00 to your computer and use it in GitHub Desktop.
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