function HandlePopupResult(result) {
window.location.href = result;
}
function moOAuthLoginNew(app_name) {
var redirectTo = new URLSearchParams(window.location.search).get('redirect_to');
if ( ! redirectTo && window.location.href.indexOf('wp-login.php') === -1 ) {
redirectTo = window.location.href;
}
var url = 'https://bibu.ai' + '/?option=oauthredirect&app_name=' + encodeURIComponent(app_name) + '&time=' + Date.now();
if ( redirectTo ) {
url += '&redirect_to=' + encodeURIComponent(redirectTo);
}
window.location.href = url;
}
Connect with :