hello.js login()错误:' Popup被阻止'在向用户显示登录弹出窗口时触发

时间:2016-03-23 21:21:51

标签: angularjs hello.js

这是我的应用代码,在角度控制器中:

hello.init({
    google: GOOGLE_CLIENT_ID
}, { redirect_uri: '/home/redirect' });

hello('google').login().then(function(){
    alert('You are signed in');
}, function(e){
    alert('Signin error: ' + e.error.message);
});

当控制器加载时,用户会看到登录提示,然后可以成功登录。但在封面下,我的控制器认为登录失败(见截图)。它在Internet Explorer 11中,在ASP.NET 4 Web应用程序中运行。screenshot of login prompt & error breakpoint launched simultaneously

1 个答案:

答案 0 :(得分:0)

经过多次挖掘后回答了我自己的问题。我的redirect.html没有在DOM中呈现的hello.js脚本。

相关问题