Skip to content

Commit

Permalink
Merge pull request #1 from arhh/arhh-update-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
arhh committed Mar 6, 2024
2 parents b355afb + ddf9d01 commit 2d16541
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
An electron app to log into Google Calendar.

## Rationale
As of this application's first release, there is no desktop tool to interact with Google Calendar, Tasks, and Notes with a UI consistent with the web application.
As of this writing (January 2024), there is no desktop tool to interact with Google Calendar, Tasks, and Notes with a UI consistent with the web application.

## Notes
* Executables for macOS and Linux are created on pushes to the `main` branch or pull requests to `main`. They are stored as _GitHub Actions Artifacts_ for one day.
Expand All @@ -13,4 +13,4 @@ The project is made with electron-forge and node.js 18
1. Clone repo.
2. Run `npm i` in the project codebase.
3. Run `npm run start` to start the application in development mode (local storage location is printed to console in case you want to clear it later).
4. Run `npm run package` to create an executable for the current platform.
4. Run `npm run package` to create an executable for the current platform.
8 changes: 8 additions & 0 deletions main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ const createWindow = () => {
icon: 'resources/material_apps.png',
});

// Same behaviour as win.webContents.loadURL(...)
win.loadURL(config.appUrl);

win.once('ready-to-show', () => {
win.setTitle(config.title);
win.show()
})

// Load contents of new windows in main window instead.
// Avoids desktop clutter
win.webContents.setWindowOpenHandler((details) => {
win.loadURL(details.url);
return {action: 'deny'};
})
}

app.whenReady().then(() => {
Expand Down

0 comments on commit 2d16541

Please sign in to comment.