Skip to content

Commit

Permalink
Fixing issue when two sso.js are run in same view webplatform/notes-s…
Browse files Browse the repository at this point in the history
…erver issue #17
  • Loading branch information
renoirb committed Oct 6, 2014
1 parent dfe8915 commit 8357bf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions skin/sso.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ jQuery('body').on('click', '#pt-logout a', function(evt){
var received,
self = this;

// As suggested in https://github.com/webplatform/notes-server/commit/49c1c04d49a5015ba3a5a68d7104ef2eeb10c60b
// and reported in https://github.com/webplatform/notes-server/issues/17
if (self.tunnel.contentWindow !== input.source) {
return;
}

if (!!input.data) {
received = input.data;
self.state.recoveryPayload += received.recoveryPayload || "";
Expand Down

0 comments on commit 8357bf7

Please sign in to comment.