Created
November 18, 2019 20:47
-
-
Save jdorfman/962fd743daae32323810e9b187c624a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
React.useEffect(() => { | |
const handler = event => { | |
if (event.detail.status === 'no-advertiser') { | |
setCodeFundOut(true); | |
} | |
}; | |
window.addEventListener('codefund', handler); | |
return () => { | |
window.removeEventListener('codefund', handler); | |
}; | |
}, []); | |
// The MIT License (MIT) Copyright (c) 2014 Call-Em-All |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment