Skip to content

Commit dd449b4

Browse files
committed
[opt]:enable backgroundThrottling
1 parent 12a0567 commit dd449b4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function createWindow(): void {
106106
show: false,
107107
...(process.platform === 'linux' ? { icon } : {}),
108108
webPreferences: {
109+
backgroundThrottling: false,
109110
preload: join(__dirname, '../preload/index.js'),
110111
sandbox: false,
111112
contextIsolation: true

src/main/multiWin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ ipcMain.on('ipc-open-window', (event, arg) => {
5252
webPreferences: {
5353
preload: join(__dirname, '../preload/index.js'),
5454
sandbox: false,
55-
contextIsolation: true
55+
contextIsolation: true,
56+
backgroundThrottling: false
5657
},
5758
frame: false,
5859
show: false

0 commit comments

Comments
 (0)