Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-1318 logout sync - remove cookie change event #158

Merged
merged 4 commits into from Aug 14, 2018
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

remove logout success event

  • Loading branch information
trickpattyFH20 committed Aug 13, 2018
commit 1ac6854a91509cd1bd80812c96d2b5fba263354f
@@ -19,7 +19,7 @@
import msgModule from './utils/msg';

const msg = msgModule('platform_pages');
const { sendMessage, sendMessageInPromise } = msg;
const { sendMessage } = msg;
/**
* Use to call init to initialize functionality
* @var {Object} initialized to an object with init method as its property
@@ -34,11 +34,7 @@ const PlatformPagesContentScript = (function (window) {
// alert background that this content script has loaded
sendMessage('platformPageLoaded');
window.addEventListener('account.logout', () => {
sendMessageInPromise('account.logout')
.then(() => {
const logoutSuccesEvt = new CustomEvent('logoutSuccess');
window.dispatchEvent(logoutSuccesEvt);
});
sendMessage('account.logout');
});
};

ProTip! Use n and p to navigate between commits in a pull request.