mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Make devTools enabled dependent on if dev environment
This commit is contained in:
@@ -897,7 +897,7 @@ export class WindowHandler {
|
||||
fullscreenable: false,
|
||||
},
|
||||
{
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1018,7 +1018,7 @@ export class WindowHandler {
|
||||
fullscreenable: false,
|
||||
},
|
||||
{
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1097,7 +1097,7 @@ export class WindowHandler {
|
||||
fullscreenable: false,
|
||||
},
|
||||
{
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
);
|
||||
const focusedWindow = BrowserWindow.getFocusedWindow();
|
||||
@@ -1208,7 +1208,7 @@ export class WindowHandler {
|
||||
resizable: false,
|
||||
},
|
||||
{
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
);
|
||||
opts.parent = window;
|
||||
@@ -1267,7 +1267,7 @@ export class WindowHandler {
|
||||
autoHideMenuBar: true,
|
||||
},
|
||||
{
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
);
|
||||
// This prevents creating multiple instances of the
|
||||
@@ -1383,7 +1383,7 @@ export class WindowHandler {
|
||||
closable: false,
|
||||
},
|
||||
{
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
),
|
||||
...{ winKey: streamId },
|
||||
@@ -1494,7 +1494,7 @@ export class WindowHandler {
|
||||
alwaysOnTop: true,
|
||||
},
|
||||
{
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ export const createComponentWindow = (
|
||||
sandbox: !isNodeEnv,
|
||||
nodeIntegration: isNodeEnv,
|
||||
preload: path.join(__dirname, '../renderer/_preload-component.js'),
|
||||
devTools: false,
|
||||
devTools: isDevEnv,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user