Does anyone have an example of how to properly use Bootstrap Embedded Chat (https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/embedded_services_web_bootstrap_chat.htm)?
Trying to understand what functionality this API actually give us, but I am getting an error when the snippet fires the embedded_svc.bootstrapEmbeddedService() function:
- esw.min.js:8 Uncaught (in promise) TypeError: Cannot read property 'isCommunityOrSite' of undefined
1 comment
I had the same error. The issue is that I had a VF page that was loading the LiveAgent Snippet and the MIAW snippet.
If the page loads the "embeddedservice/5.0/esw.min.js" and the "bootstrap.min.js' files, then the exception is thrown. Just remove the "embeddedservice/5.0/esw.min.js" script and it will work