diff --git a/modules/menu.js b/modules/menu.js index 67ab021..25092ca 100644 --- a/modules/menu.js +++ b/modules/menu.js @@ -1,5 +1,4 @@ -const {app, Menu, ipcMain} = require("electron"); -const open = require("open"); +const {app, Menu, ipcMain, shell} = require("electron"); const template = [ { @@ -88,12 +87,12 @@ const template = [ }, { label: "Ether1 documentation", click() { - open("https://docs.ether1.org"); + shell.openExternal("https://docs.ether1.org"); } }, { label: "Report issue on GitHub", click() { - open("https://github.com/taeguscromis/Ether1DesktopWallet/issues"); + shell.openExternal("https://github.com/taeguscromis/Ether1DesktopWallet/issues"); } } ] @@ -163,7 +162,7 @@ if (process.platform === "darwin") { } ipcMain.on("openURL", (event, arg) => { - open(arg); + shell.openExternal("https://github.com/taeguscromis/Ether1DesktopWallet/issues"); }); const menu = Menu.buildFromTemplate(template); diff --git a/package.json b/package.json index ab1223b..6a6c816 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "handlebars": "^4.1.0", "moment": "^2.23.0", "nedb": "^1.8.0", - "open": "0.0.5", "single-instance": "0.0.1" }, "devDependencies": {