add comments in electron.js

This commit is contained in:
Karsten Hassel 2022-03-29 21:24:17 +02:00
parent 00a7c6b5be
commit 88f7570caf

View File

@ -8,6 +8,8 @@ const Log = require("logger");
let config = process.env.config ? JSON.parse(process.env.config) : {};
// Module to control application life.
const app = electron.app;
// If ELECTRON_DISABLE_GPU is set electron is startet with --disable-gpu flag.
// See https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering for more info.
if (process.env.ELECTRON_DISABLE_GPU !== undefined) {
app.disableHardwareAcceleration();
}