Remove electron dependency from browser build by using platform-agnostic dialog types (#982)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
This commit is contained in:
@@ -62,8 +62,8 @@ export interface CertificateUploadResponse {
|
||||
data: string // base64 encoded
|
||||
}
|
||||
|
||||
// Electron dialog types (re-exported for convenience)
|
||||
import { OpenDialogOptions, OpenDialogReturnValue, SaveDialogOptions, SaveDialogReturnValue } from 'electron'
|
||||
// Dialog types (browser-compatible versions)
|
||||
import type { OpenDialogOptions, OpenDialogReturnValue, SaveDialogOptions, SaveDialogReturnValue } from './DialogTypes'
|
||||
|
||||
export type OpenDialogOptionsV2 = OpenDialogOptions
|
||||
export type OpenDialogReturnValueV2 = OpenDialogReturnValue
|
||||
|
||||
Reference in New Issue
Block a user