mirror of
https://github.com/The-Stratosphere-Solutions/Yescord-Desktop.git
synced 2025-06-23 21:32:57 +03:00
Add files via upload
This commit is contained in:
parent
11bb52284d
commit
ef97d1d1c9
34
main.js
34
main.js
@ -1,13 +1,21 @@
|
|||||||
const { app, BrowserWindow } = require('electron')
|
const { app, BrowserWindow } = require('electron')
|
||||||
|
|
||||||
function createWindow () {
|
function createWindow () {
|
||||||
const win = new BrowserWindow({
|
const mainWindow = new BrowserWindow({
|
||||||
titleBarStyle: 'hidden',
|
autoHideMenuBar: true
|
||||||
titleBarOverlay: true
|
})
|
||||||
})
|
|
||||||
win.loadURL('http://torw.ct.ws/yesc/')
|
mainWindow.loadURL('http://torw.ct.ws/yesc')
|
||||||
}
|
}
|
||||||
|
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
createWindow()
|
createWindow()
|
||||||
})
|
|
||||||
|
app.on('activate', function () {
|
||||||
|
if (BrowserWindow.getAllWindows().length === 0) createWindow()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
app.on('window-all-closed', function () {
|
||||||
|
if (process.platform !== 'darwin') app.quit()
|
||||||
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user