Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09bf497

Browse files
committed
Merge pull request #14 from taktran/jquery-originalEvent
Use JQuery originalEvent if present
2 parents 6873570 + 0158599 commit 09bf497

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/angularOauth.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ angular.module('angularOauth', []).
175175
// TODO: binding occurs for each reauthentication, leading to leaks for long-running apps.
176176

177177
angular.element($window).bind('message', function(event) {
178+
// Use JQuery originalEvent if present
179+
event = event.originalEvent || event;
178180
if (event.source == popup && event.origin == window.location.origin) {
179181
$rootScope.$apply(function() {
180182
if (event.data.access_token) {

0 commit comments

Comments
 (0)