From d1a2932245998ee311dd284c278ee1188be8c9f7 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 17 May 2019 17:58:10 +0200 Subject: [PATCH] fixed cmd-r reloading the app on macos (fixes #697) --- app/lib/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/lib/index.ts b/app/lib/index.ts index 15f5aad7..579e77aa 100644 --- a/app/lib/index.ts +++ b/app/lib/index.ts @@ -1,6 +1,5 @@ import './lru' import { app, ipcMain, Menu } from 'electron' -import electronDebug = require('electron-debug') import { parseArgs } from './cli' import { Application } from './app' if (process.platform === 'win32' && require('electron-squirrel-startup')) process.exit(0) @@ -44,7 +43,7 @@ if (!app.requestSingleInstanceLock()) { } if (argv.d) { - electronDebug({ enabled: true, showDevTools: 'undocked' }) + require('electron-debug')({ enabled: true, showDevTools: 'undocked' }) } app.on('ready', () => {