Skip to content

Commit

Permalink
Merge branch 'viniciusdacal-remove-redirect-uri-when-null' into 0.13.3
Browse files Browse the repository at this point in the history
# Conflicts:
#	satellizer.min.js
  • Loading branch information
sahat committed Dec 20, 2015
2 parents 6918d81 + 9fb56f8 commit 29533e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions satellizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@ if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.ex
var camelizedName = utils.camelCase(paramName);
var paramValue = angular.isFunction(defaults[paramName]) ? defaults[paramName]() : defaults[camelizedName];

if (paramName === 'redirect_uri' && !paramValue) {
return;
}

if (paramName === 'state') {
var stateName = defaults.name + '_state';
paramValue = encodeURIComponent(storage.get(stateName));
Expand Down
Loading

0 comments on commit 29533e3

Please sign in to comment.