electron/spec/fixtures/esm/pre-app-ready-apis.mjs

10 строки
140 B
JavaScript

import * as electron from 'electron';
try {
electron.app.disableHardwareAcceleration();
} catch {
process.exit(1);
}
process.exit(0);