Skip to content

Commit

Permalink
Fix import external file path
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebouget committed Jun 26, 2024
1 parent 635a206 commit 14dec50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ export class AppComponent implements OnInit, OnDestroy, AfterViewInit {
let path: string = '';

if (typeof input === 'string') {
// If command is called by saved json datas
path = input;
} else if (input instanceof File) {
// If command is called by user
path = input.path;
path = input;
} else {
// If command is called by saved json datas
path = input?.path;
}

const content = await this.electronService.ipcRenderer.invoke(
Expand Down

0 comments on commit 14dec50

Please # to comment.