Skip to content

Instantly share code, notes, and snippets.

@dzabrzenski
Created November 6, 2018 07:40
Show Gist options
  • Save dzabrzenski/bca4fed2f61d472724fa315e0d004ac2 to your computer and use it in GitHub Desktop.
Save dzabrzenski/bca4fed2f61d472724fa315e0d004ac2 to your computer and use it in GitHub Desktop.
Enabled pages
<!-- Start of BotEngine (www.botengine.ai) code -->
<script type="text/javascript">
var enabledPages = [
"/home"
]
if (enabledPages.indexOf(window.location.pathname) > -1) {
window.__be = window.__be || {};
window.__be.id = "5a9e58267d596a0007028a15"; // here put your widget id
(function() {
var be = document.createElement('script'); be.type = 'text/javascript'; be.async = true;
be.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.botengine.ai/widget/plugin.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(be, s);
})();
}
</script>
<!-- End of BotEngine code -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment