Skip to content

Commit

Permalink
Merge branch 'devcatalin/chore/update-electron-notarize' into build/test
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Jul 26, 2023
2 parents 7786350 + 2e5fccd commit e2f5944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion electron/app/autoUpdater.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {AppImageUpdater, MacUpdater, NsisUpdater} from 'electron-updater';
import {GenericServerOptions} from 'electron-updater/node_modules/builder-util-runtime';

import {GenericServerOptions} from 'builder-util-runtime';
import {join} from 'path';

const isDev = process.env.NODE_ENV === 'development';
Expand Down
7 changes: 1 addition & 6 deletions electron/app/ipc/ipcMainRedux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const createDispatchForWindow = (window: BrowserWindow) => {

export const dispatchToFocusedWindow = (action: AnyAction) => {
const focusedWebContents = webContents.getFocusedWebContents();
focusedWebContents.send('redux-dispatch', action);
focusedWebContents?.send('redux-dispatch', action);
};

export const fetchStoreState = (contents: WebContents) => {
Expand All @@ -51,11 +51,6 @@ export const fetchStoreState = (contents: WebContents) => {
);
};

export const fetchFocusedWindowStoreState = () => {
const focusedWebContents = webContents.getFocusedWebContents();
return fetchStoreState(focusedWebContents);
};

export const subscribeToStoreStateChanges = (
contents: WebContents,
propertiesToPick: string[],
Expand Down

0 comments on commit e2f5944

Please sign in to comment.