mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
removed dev tools
This commit is contained in:
parent
d2a22c9b36
commit
2786fcd790
|
@ -48,13 +48,14 @@ var daemonProcess = null;
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
width: 1220,
|
width: 1220,
|
||||||
height: 920,
|
height: 830,
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
icon: __dirname + '/src/app-icon.png',
|
icon: __dirname + '/src/app-icon.png',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
//preload: path.join(__dirname, 'preload-main.js'),
|
//preload: path.join(__dirname, 'preload-main.js'),
|
||||||
preload: require.resolve('./preload-main.js'),
|
preload: require.resolve('./preload-main.js'),
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
nativeWindowOpen: true,
|
||||||
contextIsolation: false,
|
contextIsolation: false,
|
||||||
enableRemoteModule: false, //https://stackoverflow.com/questions/53390798/opening-new-window-electron/53393655 https://github.com/electron/remote
|
enableRemoteModule: false, //https://stackoverflow.com/questions/53390798/opening-new-window-electron/53393655 https://github.com/electron/remote
|
||||||
}
|
}
|
||||||
|
@ -63,10 +64,12 @@ function createWindow() {
|
||||||
win.setMenuBarVisibility(false)
|
win.setMenuBarVisibility(false)
|
||||||
|
|
||||||
//open dev tools
|
//open dev tools
|
||||||
|
/*
|
||||||
win.webContents.openDevTools({
|
win.webContents.openDevTools({
|
||||||
mode: 'undocked',
|
mode: 'undocked',
|
||||||
activate: true,
|
activate: true,
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
win.loadFile('src/index.html')
|
win.loadFile('src/index.html')
|
||||||
/*
|
/*
|
||||||
data = new BrowserWindow({
|
data = new BrowserWindow({
|
||||||
|
|
Loading…
Reference in a new issue