1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 13:13:49 +03:00

updated electron-debug usage

This commit is contained in:
Eugene Pankov 2019-05-24 20:46:44 +02:00
parent 7b9cc47875
commit 44cf23ec08

View File

@ -2,6 +2,7 @@ import './lru'
import { app, ipcMain, Menu } from 'electron'
import { parseArgs } from './cli'
import { Application } from './app'
import electronDebug = require('electron-debug')
if (!process.env.TERMINUS_PLUGINS) {
process.env.TERMINUS_PLUGINS = ''
@ -42,7 +43,7 @@ if (!app.requestSingleInstanceLock()) {
}
if (argv.d) {
require('electron-debug')({ enabled: true, showDevTools: 'undocked' })
electronDebug({ isEnabled: true, showDevTools: 'undocked' })
}
app.on('ready', () => {