我正在开发一个Word 2016插件,并收到了客户的错误报告(通过Sentry记录)。但我无法复现这个问题。这个错误发生在macOS Sierra 10.12.6上的Word 16.11中的对话框窗口中。
window.external.RegisterEvent is not a function.
(In 'window.external.RegisterEvent(n,t,i,r)', 'window.external.RegisterEvent' is undefined)
这个错误来源于单词API脚本https://appsforoffice.microsoft.com/lib/1/hosted/word-mac-16.00.js
,查看Github上的调试代码,似乎来自这一行.
有没有人了解为什么会发生这种情况? 它在其他任何平台上都没有发生,并且我无法在本地重现它。
提前感谢。如果需要,我很乐意提供更多信息。
注意: 此错误发生在插件提交审核过程中导致提交失败-因此需要追踪源头。