mirror of
https://github.com/solcloud/Counter-Strike.git
synced 2025-01-17 14:48:20 +01:00
20 lines
487 B
JavaScript
20 lines
487 B
JavaScript
const {app, BrowserWindow} = require('electron')
|
|
const path = require('path')
|
|
|
|
app.whenReady().then(() => {
|
|
const win = new BrowserWindow({
|
|
autoHideMenuBar: true,
|
|
width: 1200,
|
|
height: 900,
|
|
webPreferences: {
|
|
devTools: false,
|
|
nodeIntegration: false,
|
|
sandbox: false,
|
|
contextIsolation: false,
|
|
preload: path.join(__dirname, 'preload.js')
|
|
}
|
|
})
|
|
|
|
win.loadFile('./www/index.html')
|
|
})
|