Skip to content
Snippets Groups Projects
Commit c91ff3b5 authored by dl35's avatar dl35
Browse files

Upload New File

parent 17c6c04b
No related branches found
No related tags found
No related merge requests found
main.js 0 → 100644
const {app, BrowserWindow} = require('electron')
const path = require('path')
function createWindow() {
// create the browser window
const mainWindow = new BrowserWindow({
width: 1000,
height: 1000,
webPreferences: {
nodeIntegration: true,
contextIsolation:false,
preload: path.join(__dirname, 'preload.js')
}
})
mainWindow.loadFile('index.html')
mainWindow.webContents.openDevTools()
}
app.on('ready', () => {
createWindow();
});
// app.whenReady().then(() => {
// createWindow()
// });
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment