您好,我正在使用https://github.com/OfficeDev/office-js-helpers办公室助手办公室的outlook插件登录。当我使用OfficeHelpers.Authenticator.isAuthDialog()抛出这个错误时,IE没有关闭对话框示例:
Office.initialize = function (){
if (OfficeHelpers.Authenticator.isAuthDialog()) return;
var authenticator = new OfficeHelpers.Authenticator();
authenticator.endpoints.add("endpoint", {
baseUrl: "BASE_URL",
authorizeUrl: "Authorize_URL",
clientId: "Client_id",
responseType: "token",
scope: "user",
redirectUrl: "redirect",
});
var t = authenticator.authenticate("endpoint");
t.then(function(token){
console.log("logged");
})
.catch(function(error){
console.log(error);
})
}它可以在所有其他浏览器(chrome,edge)和本地outlook客户端上运行。请帮我找到解决这个问题的办法。
发布于 2017-07-27 05:45:58
这里有一个类似的bug :用于office-js-helpers的https://github.com/OfficeDev/office-js-helpers/issues/29。请收看。
谢谢
https://stackoverflow.com/questions/45330757
复制相似问题