Skip to content

Commit

Permalink
fix: dev add auto-launch
Browse files Browse the repository at this point in the history
  • Loading branch information
王先硚 committed Sep 8, 2018
1 parent 3709de1 commit e358359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ import {

const isDevelopment = process.env.NODE_ENV !== 'production';

new AutoLaunch({ name: 'Google 翻译' }).enable();
if (!isDevelopment) {
new AutoLaunch({ name: 'Google 翻译' }).enable();
}

// global reference to mainWindow (necessary to prevent window from being garbage collected)
let mainWindow;
Expand Down

0 comments on commit e358359

Please sign in to comment.