Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
appContainer.subscribe(() => {
// TODO: This can be removed when the update issue is fixed in Electron:
// https://github.com/electron/electron/issues/12636
if (appContainer.state.activeView === prevState.activeView) {
return;
}
prevState = appContainer.state;
ipc.send('app-container-state-updated', appContainer.state);
});