electron flow type definitions
Summary: Adding a flowtype library definition for electron 3 and fixing related type errors Reviewed By: passy Differential Revision: D9124758 fbshipit-source-id: e09cb5b05ba952e7f95f68f9043edc586f81ae83
This commit is contained in:
committed by
Facebook Github Bot
parent
69eaedcbb0
commit
75dfbf51f8
@@ -11,16 +11,16 @@ import type Logger from '../fb-stubs/Logger.js';
|
||||
|
||||
export default (store: Store, logger: Logger) => {
|
||||
const currentWindow = remote.getCurrentWindow();
|
||||
currentWindow.on('focus', () =>
|
||||
currentWindow.on('focus', () => {
|
||||
store.dispatch({
|
||||
type: 'windowIsFocused',
|
||||
payload: true,
|
||||
}),
|
||||
);
|
||||
currentWindow.on('blur', () =>
|
||||
});
|
||||
});
|
||||
currentWindow.on('blur', () => {
|
||||
store.dispatch({
|
||||
type: 'windowIsFocused',
|
||||
payload: false,
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user