Add files via upload

This commit is contained in:
Forbirdden 2025-04-19 09:40:17 +05:00 committed by GitHub
parent 11bb52284d
commit ef97d1d1c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

34
main.js
View File

@ -1,13 +1,21 @@
const { app, BrowserWindow } = require('electron')
function createWindow () {
const win = new BrowserWindow({
titleBarStyle: 'hidden',
titleBarOverlay: true
})
win.loadURL('http://torw.ct.ws/yesc/')
}
app.whenReady().then(() => {
createWindow()
})
const { app, BrowserWindow } = require('electron')
function createWindow () {
const mainWindow = new BrowserWindow({
autoHideMenuBar: true
})
mainWindow.loadURL('http://torw.ct.ws/yesc')
}
app.whenReady().then(() => {
createWindow()
app.on('activate', function () {
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
})
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})