File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/intercept/config Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ function getReadablePath(path: string) {
123123
124124declare global {
125125 interface Window {
126- nativeFile : { open : ( ) => Promise < string | undefined > } ;
126+ nativeFile ? : { open : ( ) => Promise < string | undefined > } ;
127127 }
128128}
129129
@@ -149,10 +149,10 @@ class ElectronConfig extends React.Component<{
149149
150150 selectApplication = async ( ) => {
151151 const useNativePicker =
152- platform == 'win' && window . nativeFile . open ;
152+ platform == 'win' && window . nativeFile ? .open ;
153153
154154 const pathToApplication = await ( useNativePicker
155- ? window . nativeFile . open ( )
155+ ? window . nativeFile ? .open ( )
156156 : uploadFile ( 'path' ) ) ;
157157
158158 if ( ! pathToApplication ) {
You can’t perform that action at this time.
0 commit comments