大家好,
我们在 </body> 标签之前添加了以下 Javascript 代码作为新的主题组件,并白名单了该域名以启用实时聊天功能:
<script>
window.__lc = window.__lc || {};
window.__lc.license = removed;
;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))
</script>
但是,使用 Javascript 代码后聊天图标没有出现(它在 WordPress 实例上是有效的)。
我是否错过了启用此外部脚本的步骤?
感谢您的帮助!
