From 7a47b0ee5568bce5c46eb9a53853019e8f2ffc6e Mon Sep 17 00:00:00 2001 From: jkuester Date: Thu, 27 Jun 2019 14:22:35 -0500 Subject: [PATCH] 0.2.0 (#10) * Fix linting errors * 0.2.0 --- package-lock.json | 2 +- package.json | 2 +- src/index.js | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ca90ff5..54dae49 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "cucumber-forge-desktop", - "version": "0.1.1", + "version": "0.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 39cfac5..2959ad4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cucumber-forge-desktop", "productName": "cucumber-forge-desktop", - "version": "0.1.1", + "version": "0.2.0", "description": "Cucumber Forge Desktop Application", "main": "src/index.js", "scripts": { diff --git a/src/index.js b/src/index.js index 9f1fd3e..6d11ff0 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,6 @@ -const { app, BrowserWindow, dialog, shell } = require('electron'); +const { + app, BrowserWindow, dialog, shell, +} = require('electron'); const updater = require('electron-simple-updater'); // Handle creating/removing shortcuts on Windows when installing/uninstalling. @@ -60,8 +62,8 @@ const createWindow = () => { mainWindow.loadURL(`file://${__dirname}/index.html`); mainWindow.setMenu(null); - - mainWindow.webContents.on('new-window', function(e, url) { + + mainWindow.webContents.on('new-window', (e, url) => { e.preventDefault(); shell.openExternal(url); });