Update dash2.googleSignIn.js

auto-build-api-doc-with-code
Moe 2021-04-04 10:37:17 -07:00
parent 8609ce959e
commit bf1bb50d0c
1 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,12 @@
$(document).ready(function(){
$('#settings').on('click','.google-sign-in',function(){
var signInWindow = window.open(getApiPrefix('loginTokenAddGoogle'),'popup','width=300,height=300,scrollbars=no,resizable=no');
signInWindow.onbeforeunload = function(){
drawAlternateLoginsToSettings()
if(!signInWindow || signInWindow.closed || typeof signInWindow.closed=='undefined'){
alert(`Your Popup Blocker is disabling this feature.`)
}else{
signInWindow.onbeforeunload = function(){
drawAlternateLoginsToSettings()
}
}
return false;
})