Skip to content

Commit

Permalink
fix: fix the issue where the screen module in Electron is loaded prem…
Browse files Browse the repository at this point in the history
…aturely with a low probability. (#6473)

* Update .env.version

* fix: fix the issue where the screen module in Electron is loaded prematurely with a low probability.

---------

Co-authored-by: Leon <[email protected]>
  • Loading branch information
huhuanming and originalix authored Jan 9, 2025
1 parent 0bea39e commit f99ade3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/desktop/src-electron/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ import {
startServices,
} from './service';

initSentry();

logger.initialize();
logger.transports.file.maxSize = 1024 * 1024 * 10;

Expand Down Expand Up @@ -962,6 +960,7 @@ if (!singleInstance && !process.mas) {

app.name = APP_NAME;
app.on('ready', async () => {
initSentry();
const locale = await initLocale();
logger.info('locale >>>> ', locale);
startServices();
Expand Down

0 comments on commit f99ade3

Please sign in to comment.