Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.on('ready', function () {
mainWindow = createMainWindow();
try {
const isDev = require('electron-is-dev')
if (isDev) {
require('electron-debug')()
const electronDevTools = require('electron-devtools-installer')
electronDevTools.default(electronDevTools.ANGULARJS_BATARANG);
Promise.resolve()
.then(()=>require('devtron').install())
.then(()=>console.log('Devtron installed'))
.catch(()=>console.log('Devtron failed to install'));
}
} catch(e) {
console.log(`Skipped dev dependencies`)
}
HardwareWalletLedger.listeners.push((...args) => mainWindow.webContents.send(HWW_API.LISTEN, ...args));
HardwareWalletLedger.init();
})
/**
app.on('ready', function () {
mainWindow = createMainWindow()
const isDev = require('electron-is-dev')
if (isDev) {
electronDevTools.default(electronDevTools.ANGULARJS_BATARANG);
}
})
/**
id: edi.REACT_DEVELOPER_TOOLS,
longName: 'React Developer Tools'
},
backbone: {
installer: 'edi',
id: edi.BACKBONE_DEBUGGER,
longName: 'Backbone Debugger'
},
jquery: {
installer: 'edi',
id: edi.JQUERY_DEBUGGER,
longName: 'jQuery Debugger'
},
angular: {
installer: 'edi',
id: edi.ANGULARJS_BATARANG,
longName: 'AngularJS Batarang'
},
vuejs: {
installer: 'edi',
id: edi.VUEJS_DEVTOOLS,
longName: 'Vue.js devtools'
},
redux: {
installer: 'edi',
id: edi.REDUX_DEVTOOLS,
longName: 'Redux DevTools'
},
reactPerf: {
installer: 'edi',
id: edi.REACT_PERF,
longName: 'React Perf'