import { app, BrowserWindow } from 'electron';
let win: BrowserWindow = null;

app.on('ready', () => {
    win = new BrowserWindow({
        height: 600,
        width: 1000,
        frame: false,
        resizable: false,
        alwaysOnTop: true,
        title: "OffPass",
        webPreferences: {
            nodeIntegration: true,
            enableRemoteModule: true
        }
    });
    //win.loadURL("https://google.de")
    win.loadFile('../src/index.html');
});

app.on('window-all-closed', () => {
    win = null;
})