Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pushToManager = debounce(() => {
if (this._channel) {
const stories = this.extract();
// send to the parent frame.
this._channel.emit(Events.SET_STORIES, { stories });
}
}, 0);
_sendSetStories() {
const channel = addons.getChannel();
const stories = this._stories.extract();
channel.emit(Events.SET_STORIES, { stories });
channel.emit(Events.STORIES_CONFIGURED);
}