Refactoring

This commit is contained in:
2019-10-16 22:58:54 -05:00
parent 33ea659c65
commit 097b071a0f

View File

@@ -16,13 +16,13 @@ const ipcRenderer = getIPCRenderer();
let store;
if (ipcRenderer) {
ipcRenderer.on(Constants.IPC_Get_Platform_Reply, (event, platformInfo) => {
ipcRenderer.once(Constants.IPC_Get_Platform_Reply, (event, platformInfo) => {
if (platformInfo.Platform === 'linux') {
const root = document.documentElement;
root.style.setProperty('--default_font_size', '15.3px');
}
ipcRenderer.on(Constants.IPC_Get_State_Reply, (event, result) => {
ipcRenderer.once(Constants.IPC_Get_State_Reply, (event, result) => {
if (result.data) {
store = createAppStore(platformInfo, packageJson.version, result.data);
store.dispatch(setActiveRelease(result.data.Release, result.data.Version));