Skip to content

Commit

Permalink
Updated electron and TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
rmraya committed Oct 11, 2024
1 parent 7ae8b14 commit ffbd260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"url": "https://github.com/rmraya/Swordfish.git"
},
"devDependencies": {
"electron": "^32.1.2",
"typescript": "^5.6.2"
"electron": "^32.2.0",
"typescript": "^5.6.3"
},
"dependencies": {
"mtengines": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions ts/Swordfish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5156,9 +5156,9 @@ export class Swordfish {
shell.showItemInFolder(file);
}
});
response.on('error', (reason: string) => {
response.on('error', (error: Error) => {
Swordfish.mainWindow.webContents.send('set-status', '');
dialog.showErrorBox('Error', reason);
dialog.showErrorBox('Error', error.message);
if (process.platform === 'win32' || process.platform === 'darwin') {
Swordfish.mainWindow.setProgressBar(0);
}
Expand Down

0 comments on commit ffbd260

Please sign in to comment.