有什么办法不支持 IE11 的 Outlook Office 加载项?
Any way not to support IE11 about Outlook Office Add-in?
目前我们正在开发 Microsoft Outlook Office 加载项。虽然我们几乎完成了实施阶段,但我们在应用程序审查阶段被拒绝了。根据评论者的反馈,当用户使用 Outlook 网页版并在 Internet Explorer 11(IE11)上打开我们的插件时,它无法正常工作。(浏览器控制台出现异常)但是,由于异常不会出现在 Chrome、Edge 和 Safari 上,我想明确地从支持的浏览器中删除 IE11(并通过应用程序审查)。
问:有什么办法不支持IE11吗?
大致如下:
// `document.documentMode` is a number in IE 5+
// and `undefined` in all other browsers
var isIe = !!document.documentMode
if (isIe) {
// replace with whatever logic you want to implement for IE users
document.body.textContent = 'Sorry, IE not supported'
} else {
// replace with logic for non-IE users
app.init()
}
目前我们正在开发 Microsoft Outlook Office 加载项。虽然我们几乎完成了实施阶段,但我们在应用程序审查阶段被拒绝了。根据评论者的反馈,当用户使用 Outlook 网页版并在 Internet Explorer 11(IE11)上打开我们的插件时,它无法正常工作。(浏览器控制台出现异常)但是,由于异常不会出现在 Chrome、Edge 和 Safari 上,我想明确地从支持的浏览器中删除 IE11(并通过应用程序审查)。
问:有什么办法不支持IE11吗?
大致如下:
// `document.documentMode` is a number in IE 5+
// and `undefined` in all other browsers
var isIe = !!document.documentMode
if (isIe) {
// replace with whatever logic you want to implement for IE users
document.body.textContent = 'Sorry, IE not supported'
} else {
// replace with logic for non-IE users
app.init()
}