mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 21:58:39 -09:00
silence electron remote module warning
This commit is contained in:
parent
73f8037eca
commit
5bc4a5c299
1 changed files with 18 additions and 20 deletions
|
|
@ -24,27 +24,25 @@ export function newWindow(
|
||||||
const classOpts = Object.assign({uid: uuidv4()});
|
const classOpts = Object.assign({uid: uuidv4()});
|
||||||
app.plugins.decorateWindowClass(classOpts);
|
app.plugins.decorateWindowClass(classOpts);
|
||||||
|
|
||||||
const winOpts = Object.assign(
|
const winOpts: BrowserWindowConstructorOptions = {
|
||||||
{
|
minWidth: 370,
|
||||||
minWidth: 370,
|
minHeight: 190,
|
||||||
minHeight: 190,
|
backgroundColor: toElectronBackgroundColor(cfg.backgroundColor || '#000'),
|
||||||
backgroundColor: toElectronBackgroundColor(cfg.backgroundColor || '#000'),
|
titleBarStyle: 'hiddenInset',
|
||||||
titleBarStyle: 'hiddenInset',
|
title: 'Hyper.app',
|
||||||
title: 'Hyper.app',
|
// we want to go frameless on Windows and Linux
|
||||||
// we want to go frameless on Windows and Linux
|
frame: process.platform === 'darwin',
|
||||||
frame: process.platform === 'darwin',
|
transparent: process.platform === 'darwin',
|
||||||
transparent: process.platform === 'darwin',
|
icon,
|
||||||
icon,
|
show: Boolean(process.env.HYPER_DEBUG || process.env.HYPERTERM_DEBUG || isDev),
|
||||||
show: process.env.HYPER_DEBUG || process.env.HYPERTERM_DEBUG || isDev,
|
acceptFirstMouse: true,
|
||||||
acceptFirstMouse: true,
|
webPreferences: {
|
||||||
webPreferences: {
|
nodeIntegration: true,
|
||||||
nodeIntegration: true,
|
navigateOnDragDrop: true,
|
||||||
navigateOnDragDrop: true
|
enableRemoteModule: true
|
||||||
}
|
|
||||||
},
|
},
|
||||||
options_
|
...options_
|
||||||
);
|
};
|
||||||
|
|
||||||
const window = new BrowserWindow(app.plugins.getDecoratedBrowserOptions(winOpts));
|
const window = new BrowserWindow(app.plugins.getDecoratedBrowserOptions(winOpts));
|
||||||
window.uid = classOpts.uid;
|
window.uid = classOpts.uid;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue