Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhen1024 authored Aug 11, 2022
1 parent 4c3b3c0 commit 175a5b8
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
@@ -1,10 +1,12 @@
import { join } from 'path';
import { app, BrowserWindow, ipcMain, Menu, nativeTheme, shell } from 'electron';
import { app, BrowserWindow, ipcMain, Menu, nativeTheme, shell, powerSaveBlocker } from 'electron';

import { IsDev, IsDarwin, MainURL, LoginURL } from './util/constants';
import * as Settings from './settings';
import { AppTray } from './tray';

powerSaveBlocker.start('prevent-app-suspension')

// workaround https://bugs.chromium.org/p/chromium/issues/detail?id=1213347
if (process.versions.chrome.startsWith('91.0')) {
delete process.env.GDK_SCALE;
Expand Down

0 comments on commit 175a5b8

Please sign in to comment.