我以前使用Google跟踪代码管理器成功设置了对讲.几个月没有触及它并去制作一个新的标签,但我发现来自对讲机标签的这个错误:
Error at line 6, character 243: this language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration. Use --language_in=ECMASCRIPT6 or ECMASCRIPT6_STRICT or higher to enable ES6 features.
Run Code Online (Sandbox Code Playgroud)
对讲机的脚本自最初起作用以来没有改变:
<script>
window.intercomSettings = {
app_id: "key"
};
</script>
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/key';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
Run Code Online (Sandbox Code Playgroud)
如果有人遇到此错误并且有任何关于如何解决它的建议或提示,那将非常感激.