Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Register deep link protocol and start linked timer automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcroox committed Feb 13, 2019
1 parent e362f2a commit a02bc5b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ macOS and Linux menubar app for JIRA time logging. Built with React and Electron

Head over to the [releases to download](https://github.com/alexcroox/jira-timer-menubar/releases/latest) for macOS or Linux.

## Chrome Extension

Install the [Chrome extension](https://github.com/alexcroox/jira-timer-menubar-chrome-extension) to quickly start a timer from the JIRA web ui.

#### Linux users

If you are running newer versions of GNOME you will need the
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const installExtensions = () => {
}

let mb = null
let renderProcess = null
let credentials = null
let jiraUserKey = null
let windowVisible = false
Expand Down Expand Up @@ -148,7 +149,7 @@ function launchMenuBar () {

if (jiraUserKey) {

let renderProcess = mb.window.webContents
renderProcess = mb.window.webContents

// Tell the main process the window is visible
renderProcess.send('windowVisible')
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jira-timer",
"version": "1.0.29",
"version": "1.0.30",
"description": "Jira Timer",
"productName": "Jira Timer",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/process-communication.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const handleComms = () => {
let task = await api.get(`/issue/${taskKey}?fields=summary`)
console.log('Found deep link task', task)

store.dispatch(addTimer(task.id, taskKey, task.fields.summary))
store.dispatch(addTimer(task.id, task.key, task.fields.summary))
} catch (error) {
console.error('Error deep link adding timer', error)
}
Expand Down

0 comments on commit a02bc5b

Please sign in to comment.