-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): bump electron to 32.2.1 COMPASS-8399 #6387
Conversation
Also does the compass-specific bits of COMPASS-8253. Fixes: #6122 Fixes: #6334
let _electron: typeof import('electron') | undefined | null; | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-imports | ||
function getElectronWebUtils(): typeof import('electron').webUtils | undefined { | ||
if (_electron === undefined) { | ||
try { | ||
_electron = require('electron'); | ||
} catch { | ||
_electron = null; | ||
} | ||
} | ||
return _electron?.webUtils; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to follow the pattern of hiding direct electron usage behind the FileInputBackend interface, what do you think about adding getPathForFile as an extra method to the interface instead of importing electron here directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah, that's definitely a better way of going about this! Did this in 9c27dd7
This reverts commit fb4f812.
Also does the compass-specific bits of COMPASS-8253.
Fixes: #6122
Fixes: #6334
Description
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes