mirror of
https://github.com/The-Stratosphere-Solutions/Yescord-Desktop.git
synced 2025-06-23 21:32:57 +03:00
22 lines
474 B
JavaScript
22 lines
474 B
JavaScript
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()
|
|
})
|