[Mm 37198] enable global sandboxing to increase security (#1667)
* prevent creating new windows from popup windows * enable sandbox * fix windows detection logic * disable on testing environment Co-authored-by: = <=>
This commit is contained in:
@@ -64,6 +64,7 @@ type Props = {
|
||||
openMenu: () => void;
|
||||
darkMode: boolean;
|
||||
appName: string;
|
||||
useNativeWindow: boolean;
|
||||
};
|
||||
|
||||
type State = {
|
||||
@@ -358,7 +359,7 @@ export default class MainPage extends React.PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
let titleBarButtons;
|
||||
if (window.os.isWindows10) {
|
||||
if (window.process.platform === 'win32' && !this.props.useNativeWindow) {
|
||||
titleBarButtons = (
|
||||
<span className='title-bar-btns'>
|
||||
<div
|
||||
|
Reference in New Issue
Block a user