Append swagger-auth global functions to window and don't break backward
This commit is contained in:
4
dist/lib/swagger-oauth.js
vendored
4
dist/lib/swagger-oauth.js
vendored
@@ -202,7 +202,7 @@ function initOAuth(opts) {
|
||||
});
|
||||
}
|
||||
|
||||
function processOAuthCode(data) {
|
||||
window.processOAuthCode = function processOAuthCode(data) {
|
||||
var params = {
|
||||
'client_id': clientId,
|
||||
'code': data.code,
|
||||
@@ -225,7 +225,7 @@ function processOAuthCode(data) {
|
||||
});
|
||||
}
|
||||
|
||||
function onOAuthComplete(token) {
|
||||
window.onOAuthComplete = function onOAuthComplete(token) {
|
||||
if(token) {
|
||||
if(token.error) {
|
||||
var checkbox = $('input[type=checkbox],.secured')
|
||||
|
||||
Reference in New Issue
Block a user