Archived
23 lines
513 B
JavaScript
23 lines
513 B
JavaScript
const { app, BrowserWindow, session } = require('electron');
|
|
const fs = require('fs');
|
|
|
|
let mainWindow;
|
|
|
|
app.whenReady().then(() => {
|
|
mainWindow = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
webPreferences: {
|
|
nodeIntegration: false,
|
|
contextIsolation: true,
|
|
},
|
|
});
|
|
mainWindow.loadURL('https://linear.app/login');
|
|
|
|
app.on('window-all-closed', () => {
|
|
if (process.platform !== 'darwin') {
|
|
app.quit();
|
|
}
|
|
});
|
|
});
|