Refactoring

This commit is contained in:
Scott E. Graves
2019-06-12 19:22:39 -05:00
parent bfdb5421d6
commit 81303d68dd

View File

@@ -13,6 +13,8 @@ import * as serviceWorker from './serviceWorker';
const Constants = require('./constants');
const ipcRenderer = getIPCRenderer();
let store;
if (ipcRenderer) {
ipcRenderer.on(Constants.IPC_Get_Platform_Reply, (event, arg) => {
if (arg.Platform === 'linux') {
@@ -20,7 +22,7 @@ if (ipcRenderer) {
root.style.setProperty('--default_font_size', '15px');
}
const store = createAppStore(arg.Platform, arg.AppPlatform, packageJson.version);
store = createAppStore(arg.Platform, arg.AppPlatform, packageJson.version);
ipcRenderer.on(Constants.IPC_Get_State_Reply, (event, arg) => {
if (arg.data) {
store.dispatch(setActiveRelease(arg.data.Release, arg.data.Version));