- open module removed, used shell instead

This commit is contained in:
Taegus
2019-03-03 11:48:06 +01:00
parent b0cd7d517a
commit 98149b48ae
2 changed files with 4 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
const {app, Menu, ipcMain} = require("electron"); const {app, Menu, ipcMain, shell} = require("electron");
const open = require("open");
const template = [ const template = [
{ {
@@ -88,12 +87,12 @@ const template = [
}, { }, {
label: "Ether1 documentation", label: "Ether1 documentation",
click() { click() {
open("https://docs.ether1.org"); shell.openExternal("https://docs.ether1.org");
} }
}, { }, {
label: "Report issue on GitHub", label: "Report issue on GitHub",
click() { 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) => { ipcMain.on("openURL", (event, arg) => {
open(arg); shell.openExternal("https://github.com/taeguscromis/Ether1DesktopWallet/issues");
}); });
const menu = Menu.buildFromTemplate(template); const menu = Menu.buildFromTemplate(template);

View File

@@ -52,7 +52,6 @@
"handlebars": "^4.1.0", "handlebars": "^4.1.0",
"moment": "^2.23.0", "moment": "^2.23.0",
"nedb": "^1.8.0", "nedb": "^1.8.0",
"open": "0.0.5",
"single-instance": "0.0.1" "single-instance": "0.0.1"
}, },
"devDependencies": { "devDependencies": {