Skip to content

Commit

Permalink
Upgrade electron and replace deprecated shell.openItem API
Browse files Browse the repository at this point in the history
  • Loading branch information
manavmehta committed Jul 15, 2020
1 parent 6128c0e commit 4ee9c0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/renderer/js/utils/link-util.ts
Expand Up @@ -36,7 +36,7 @@ export async function openBrowser(url: URL): Promise<void> {
</body>
</html>
`);
shell.openItem(file);
await shell.openPath(file);
setTimeout(() => {
fs.unlinkSync(file);
fs.rmdirSync(dir);
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -180,7 +180,7 @@
"@typescript-eslint/parser": "^3.5.0",
"devtron": "^1.4.0",
"dotenv": "^8.2.0",
"electron": "^8.3.4",
"electron": "^9.1.0",
"electron-builder": "^22.7.0",
"electron-connect": "^0.6.3",
"electron-notarize": "^1.0.0",
Expand Down

0 comments on commit 4ee9c0c

Please sign in to comment.