在同一页面上使用SurveyMonkey脚本和webcomponentsjs的Firefox中出现错误

时间:2018-09-25 07:14:24

标签: web-component surveymonkey lit-element

在Firefox 62(Windows和macOS)上,SurveyMonkey脚本会引发错误“ TypeError:e undefined”,并且不会在同一页面上加载webcomponents.js。

仅进行基本调查

<script>(function(t,e,s,n){var o,a,c;t.SMCX=t.SMCX||[],e.getElementById(n)||(o=e.getElementsByTagName(s),a=o[o.length-1],c=e.createElement(s),c.type="text/javascript",c.async=!0,c.id=n,c.src=["https:"===location.protocol?"https://":"http://","widget.surveymonkey.com/collect/website/js/tRaiETqnLgj758hTBazgd8CHtEBO74mudxUVP80WvBBSYPajCYs_2BswkzpsHfo0td.js"].join(""),a.parentNode.insertBefore(c,a))})(window,document,"script","smcx-sdk");</script>

并导入webcomponentjs会引发错误。

我创建了一个示例来重现该错误(仅在FireFox中发生): https://codepen.io/marcelmalik/pen/XPOOpB?editors=1000

有什么主意我可以解决这个问题吗? SurveyMonkey的支持不是很大的帮助...

感谢您的帮助!

0 个答案:

没有答案