Skip to content

Fix for undefined event.sender in Electron ≥ 25#4

Open
andersk wants to merge 1 commit intojavan:mainfrom
andersk:undefined
Open

Fix for undefined event.sender in Electron ≥ 25#4
andersk wants to merge 1 commit intojavan:mainfrom
andersk:undefined

Conversation

@andersk
Copy link
Copy Markdown

@andersk andersk commented Sep 27, 2023

In Electron ≥ 25, event.sender is now undefined for events that are not IPC events. This breaks gatemaker with

TypeError: Cannot read properties of undefined (reading 'getSavePath')

This was apparently an intended change upstream; see

Instead use this, which has the same value in Electron < 25 and remains usable in Electron ≥ 25.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read properties of undefined (reading 'getSavePath') in Electron ≥ 25

1 participant