Created
March 17, 2021 21:42
-
-
Save ashleytbasinger/7cede0f858db2cf59f923b96d65dd6db to your computer and use it in GitHub Desktop.
chat_client_handoff
This file contains hidden or 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
// load Drift and other chat client here | |
// if Drift should fire first, hide other chat client -- if the other way, hide Drift. | |
window.drift.on("conversation:buttonClicked", function(data) { | |
console.log(data); | |
if (data.buttonBody == "File a ticket") { // be sure to change text to match your implementaton | |
drift.unload(); | |
// instantiate your other chat client code here (load client) | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment