const electron = require('electron')

const {app, BrowserWindow} = electron

app.on('ready',  function () {
    let mainWindow =  new BrowserWindow({
        useContentSize: true,
        width: 400,
        height: 300,
        backgroundColor: 'white',
        webPreferences: {
            experimentalFeatures: true
        }
    })
    mainWindow.loadURL(`file://${__dirname}/index.html`)

    // mainWindow.webContents.openDevTools()
})
@@ -29,16 +29,67 @@
 ectron')
+%0Aconst googleCalendar = require('./googlecalendar')
 %0A%0Aconst 
@@ -486,8 +486,181 @@
 ols()%0A%7D)
+%0A%0Amodule.exports.openAuthWindow = function() %7B%0A    googleCalendar.authorize()%0A        // .then(data =%3E console.log(data))%0A        // .catch(_ =%3E console.log('auth error'))%0A%7D

add authorize in main process