diff --git a/README.md b/README.md index b55bd20..21e0b17 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/index.js b/index.js index 68a8990..92c4492 100644 --- a/index.js +++ b/index.js @@ -45,6 +45,7 @@ const installExtensions = () => { } let mb = null +let renderProcess = null let credentials = null let jiraUserKey = null let windowVisible = false @@ -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') diff --git a/package-lock.json b/package-lock.json index 10ea69e..62c0c72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jira-timer", - "version": "1.0.29", + "version": "1.0.30", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b76ffe9..d471dab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jira-timer", - "version": "1.0.29", + "version": "1.0.30", "description": "Jira Timer", "productName": "Jira Timer", "main": "index.js", diff --git a/src/lib/process-communication.js b/src/lib/process-communication.js index c30c9aa..0adc6eb 100644 --- a/src/lib/process-communication.js +++ b/src/lib/process-communication.js @@ -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) }