From 7fb3dfeb3b08b46e2a525164fc96aa881f39cd03 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Fri, 20 Apr 2018 00:34:24 +0900
Subject: [PATCH] fix: Disable renderer backgrounding of chromium
---
src/main/index.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/main/index.js b/src/main/index.js
index 0cbaa849..5e54fc0b 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -224,6 +224,9 @@ function createWindow () {
})
}
+// Do not lower the rendering priority of Chromium when background
+app.commandLine.appendSwitch('disable-renderer-backgrounding')
+
app.on('ready', createWindow)
app.on('window-all-closed', () => {