Skip to content

Commit

Permalink
only load react devtools if running via nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
JustYuuto committed Jul 2, 2023
1 parent 9bcb221 commit 64abdc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ app.whenReady().then(async () => {
DeezerWebSocket.start();

await Tray.init(app, RPC.client);
await session.defaultSession.loadExtension(join(process.cwd(), 'src', 'react-devtools'));
if (process.argv0.includes('node')) {
await session.defaultSession.loadExtension(join(process.cwd(), 'src', 'react-devtools'));
}
await Window.load(app);
await updater(true);

Expand Down

0 comments on commit 64abdc3

Please sign in to comment.