Update dash2.googleSignIn.js
parent
8609ce959e
commit
bf1bb50d0c
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue