Load (my) redux dev tools in dev mode
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import * as os from 'os'
|
||||
import * as path from 'path'
|
||||
import axios from 'axios'
|
||||
import { BrowserWindow } from 'electron'
|
||||
|
||||
export async function waitForDevServer() {
|
||||
let response
|
||||
@@ -13,6 +16,13 @@ export async function waitForDevServer() {
|
||||
}
|
||||
}
|
||||
|
||||
export function loadDevTools() {
|
||||
// Redux
|
||||
BrowserWindow.addDevToolsExtension(
|
||||
path.join(os.homedir(), '/Library/Application Support/Google/Chrome/Default/Extensions/lmhkpmbekcpmknklioeibfkpmmfibljd/2.17.0_0/')
|
||||
)
|
||||
}
|
||||
|
||||
export function isDev() {
|
||||
return Boolean(process.argv.find(arg => arg === '--development'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user