[client-app] Fix benchmark mode

Summary:
We weren't passing benchmarkMode through in the default window options,
so the worker window (or any other spawned window) would think it wasn't in
benchmark mode.

Test Plan:
Run locally, verify that the worker window thinks it's in
benchmark mode

Reviewers: halla, spang, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D4427
This commit is contained in:
Mark Hahnenberg 2017-04-14 10:47:14 -07:00
parent 8b9d98c5e2
commit 92c3d8c608

View file

@ -16,18 +16,19 @@ let winNum = 0;
export default class WindowLauncher {
static EMPTY_WINDOW = "emptyWindow"
constructor({devMode, safeMode, specMode, resourcePath, configDirPath, onCreatedHotWindow, config}) {
constructor({devMode, benchmarkMode, safeMode, specMode, resourcePath, configDirPath, onCreatedHotWindow, config}) {
this.defaultWindowOpts = {
frame: process.platform !== "darwin",
hidden: false,
toolbar: true,
devMode: devMode,
safeMode: safeMode,
devMode,
safeMode,
benchmarkMode,
resizable: true,
windowType: WindowLauncher.EMPTY_WINDOW,
bootstrapScript: require.resolve("../secondary-window-bootstrap"),
resourcePath: resourcePath,
configDirPath: configDirPath,
resourcePath,
configDirPath,
}
this.config = config;
this.onCreatedHotWindow = onCreatedHotWindow;