I have a problem integrating the Happyfox Chat widget on my website. The standard procedure is to add the following code at the bottom of the body-area on the website:
<script>
window.HFCHAT_CONFIG = {
EMBED_TOKEN: "yourEmbedToken",
ACCESS_TOKEN: "yourAccessToken",
HOST_URL: "https://happyfoxchat.com",
ASSETS_URL: "https://d1l7z5ofrj6ab8.cloudfront.net/visitor"
};
(function() {
var scriptTag = document.createElement('script');
scriptTag.type = 'text/javascript';
scriptTag.async = true;
scriptTag.src = window.HFCHAT_CONFIG.ASSETS_URL + '/js/widget-loader.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(scriptTag, s);
})();
</script>
The problem is, that it is getting reloaded several times, when I change the language (via the I18n rails gem).
Does anybody know any solution to that problem?
Thanks!
I have a problem integrating the Happyfox Chat widget on my website. The standard procedure is to add the following code at the bottom of the body-area on the website:
<script> window.HFCHAT_CONFIG = { EMBED_TOKEN: "yourEmbedToken", ACCESS_TOKEN: "yourAccessToken", HOST_URL: "https://happyfoxchat.com", ASSETS_URL: "https://d1l7z5ofrj6ab8.cloudfront.net/visitor" }; (function() { var scriptTag = document.createElement('script'); scriptTag.type = 'text/javascript'; scriptTag.async = true; scriptTag.src = window.HFCHAT_CONFIG.ASSETS_URL + '/js/widget-loader.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(scriptTag, s); })(); </script>The problem is, that it is getting reloaded several times, when I change the language (via the I18n rails gem).
Does anybody know any solution to that problem?
Thanks!