allow reusing render process / fix deprecation warning

This commit is contained in:
Christopher Willis-Ford 2020-05-22 16:16:22 -07:00
parent 3cdcb199bd
commit 73a2d3e015

View file

@ -8,8 +8,10 @@ import telemetry from './ScratchDesktopTelemetry';
import MacOSMenu from './MacOSMenu';
import log from '../common/log.js';
telemetry.appWasOpened();
// suppress deprecation warning; this will be the default in Electron 9
app.allowRendererProcessReuse = true;
telemetry.appWasOpened();
// const defaultSize = {width: 1096, height: 715}; // minimum
const defaultSize = {width: 1280, height: 800}; // good for MAS screenshots