mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
[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:
parent
8b9d98c5e2
commit
92c3d8c608
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue