Refactoring
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user