mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Merge pull request #2839 from rohitdharavath/patch-1
This commit is contained in:
commit
d730dd04bf
@ -8,7 +8,7 @@ const Log = require("logger");
|
|||||||
let config = process.env.config ? JSON.parse(process.env.config) : {};
|
let config = process.env.config ? JSON.parse(process.env.config) : {};
|
||||||
// Module to control application life.
|
// Module to control application life.
|
||||||
const app = electron.app;
|
const app = electron.app;
|
||||||
// If ELECTRON_DISABLE_GPU is set electron is startet with --disable-gpu flag.
|
// If ELECTRON_DISABLE_GPU is set electron is started with --disable-gpu flag.
|
||||||
// See https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering for more info.
|
// See https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering for more info.
|
||||||
if (process.env.ELECTRON_DISABLE_GPU !== undefined) {
|
if (process.env.ELECTRON_DISABLE_GPU !== undefined) {
|
||||||
app.disableHardwareAcceleration();
|
app.disableHardwareAcceleration();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user