From 98149b48aec803beab6dfde2efae8d302ef5f626 Mon Sep 17 00:00:00 2001 From: Taegus Date: Sun, 3 Mar 2019 11:48:06 +0100 Subject: [PATCH] - open module removed, used shell instead --- modules/menu.js | 9 ++++----- package.json | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) 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": {