Commit 2614a772eece122e352581800c13e8e32aceac48
1 parent
bdec7873
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
oauth_client: rename callback
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/oauth_client/public/main.js
1 | function oauthPluginCloseLoginPopup(loggedIn, privateToken) { | 1 | function oauthPluginCloseLoginPopup(loggedIn, privateToken) { |
2 | - if (window.opener && typeof window.opener.handleLoginResult == 'function') { | 2 | + if (window.opener && typeof window.opener.oauthPluginHandleLoginResult == 'function') { |
3 | try { | 3 | try { |
4 | - window.opener.handleLoginResult(loggedIn, privateToken); | 4 | + window.opener.oauthPluginHandleLoginResult(loggedIn, privateToken); |
5 | } catch (err) {} | 5 | } catch (err) {} |
6 | window.close(); | 6 | window.close(); |
7 | } | 7 | } |