Skip to content

Commit

Permalink
fix the i.resolversMap[t.id] is not a function error (related to De…
Browse files Browse the repository at this point in the history
  • Loading branch information
LavrovArtem committed Oct 10, 2018
1 parent c2c6b79 commit a7ff20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/sandbox/cookie/window-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default class WindowSync {
else
callback();
}
else if (message.cmd === SYNC_COOKIE_DONE_CMD) {
// NOTE: We need to remove the second part of the condition after a fix of GH-1715
else if (message.cmd === SYNC_COOKIE_DONE_CMD && this.resolversMap[message.id]) {
this.resolversMap[message.id]();

delete this.resolversMap[message.id];
Expand Down

0 comments on commit a7ff20f

Please sign in to comment.