- Removed the outdated @electron-toolkit/preload dependency and re-added it with the correct version. - Added a new event listener in WindowService to set the preload script for webviews. - Updated the openExternal method in preload to handle potential null values. - Enabled node integration for webviews in the MinApp component for improved functionality.
5 lines
213 B
TypeScript
5 lines
213 B
TypeScript
export const isMac = process.platform === 'darwin'
|
|
export const isWin = process.platform === 'win32'
|
|
export const isLinux = process.platform === 'linux'
|
|
export const isDev = process.env.NODE_ENV === 'development'
|