Skip to content

Commit

Permalink
fix: better way to get origin
Browse files Browse the repository at this point in the history
  • Loading branch information
shatgupt committed Jan 5, 2018
1 parent 8089ab7 commit 8624d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/authenticator.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const openAuthPopUp = (url) => {
}

let popUpResponded = false
const redirectUri = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '') + '/redirect.html'
const redirectUri = location.origin + '/redirect.html'
const authConfig = {
response_type: 'code',
redirect_uri: redirectUri
Expand Down

0 comments on commit 8624d76

Please sign in to comment.