Skip to content

Commit

Permalink
Fix react devtools extension path
Browse files Browse the repository at this point in the history
  • Loading branch information
moshfeu committed Dec 28, 2018
1 parent fe1407c commit 6354b99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ function createWindow() {
// Open the DevTools.
if (isDev) {
win.webContents.openDevTools();
const reactDevtoolsPath = join(homedir(), '/Library/Application\ Support/Google/Chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/3.4.3_0/');

const reactDevtoolsPath = join(homedir(), '/Library/Application Support/Google/Chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/3.4.3_0/');
const ex = existsSync(reactDevtoolsPath);
if (ex) {
BrowserWindow.addDevToolsExtension(reactDevtoolsPath);
Expand Down

0 comments on commit 6354b99

Please sign in to comment.