-
-
Save heijmerikx/4b575410c4acfde3208265b53e3d0e00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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