Skip to content

Commit

Permalink
Merge pull request #50 from mickr/BIG-21501
Browse files Browse the repository at this point in the history
BIG-21501 - EU Cookie warning (Bugfix)
  • Loading branch information
Mick Ryan committed Jan 4, 2016
2 parents 962f2c1 + 7443704 commit fd20c7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/api/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ export default class extends Base
document.cookie = cookieStr;
});
} else {
document.cookie = cookieStr;
alert(response.data.PrivacyCookieNotification);
const confirmed = confirm(response.data.PrivacyCookieNotification);
if (confirmed) {
document.cookie = cookieStr;
}
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Hooks {
emit(hookName) {
const hook = internals.parseHooks(hookName);

return hook.emit.apply(arguments);
return hook.emit.apply(hook, arguments);
}
}

Expand Down

0 comments on commit fd20c7b

Please sign in to comment.