Script hosting for the FrontierBase chatbot widget.
Only the following is needed on your page. Replace USER_UNIQUE_KEY with your plugin key.
<script>
(function () {
var pluginKey = 'USER_UNIQUE_KEY';
var w = window, ns = 'FrontierBase';
var s = document.createElement('script');
s.id = ns;
s.src = 'https://cdn.frontierbase.io/chatbot.js';
s.defer = true;
s.setAttribute('data-plugin-key', pluginKey);
w[ns] = w[ns] || function () { (w[ns].q = w[ns].q || []).push(arguments); };
w[ns]('boot', { pluginKey: pluginKey });
document.head.appendChild(s);
})();
</script>
/chatbot.js — Loader (no cache). Loads the versioned bundle.
/chatbot-<hash>.js — Versioned bundle (long cache).