Skip to content

Commit

Permalink
Add GitHub button functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
LyubomirT committed Jan 27, 2024
1 parent 08de023 commit 7c2dcee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const closeButton = document.getElementById('close-button')
const helpButton = document.getElementById('help-button')
const contextMenuHelp = document.getElementById('context-menu-help')
const ctmnHelp = document.getElementById('ctmn-bg-help')
const githubButton = document.getElementById('github-button')

function adjustStuff(){
noteContent.style.height = 'auto'
Expand Down Expand Up @@ -297,4 +298,8 @@ ctmnHelp.addEventListener('click', () => {
document.getElementById('handbook-button').addEventListener('click', () => {
// Open the handbook in the default browser
ipcRenderer.invoke('open-handbook')
})

githubButton.addEventListener('click', () => {
ipcRenderer.invoke('open-link', 'https://github.com/LyubomirT/remembered')
})

0 comments on commit 7c2dcee

Please sign in to comment.