Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Fire-App-YT authored Nov 11, 2022
1 parent 1f9f97b commit 77a839d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
const { app, BrowserWindow, ipcMain, nativeTheme } = require('electron')
const path = require('path')

function createWindow () {

const mainWindow = new BrowserWindow({
width: 800,
height: 600,
frame:false,
fullscreen: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true
}
})


mainWindow.loadFile('index.html')
}

app.whenReady().then(() => {
createWindow()

app.on('activate', function () {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
})


app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})

0 comments on commit 77a839d

Please sign in to comment.