Skip to content

Commit

Permalink
fix: version update info.
Browse files Browse the repository at this point in the history
  • Loading branch information
cangzhang committed May 17, 2020
1 parent 172114e commit 3e93388
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "champ-r",
"version": "0.9.13-pre2",
"version": "0.9.13-pre4",
"license": "MIT",
"description": "Get champion builds & runes for lol.",
"productName": "ChampR",
Expand Down
10 changes: 7 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ipcRenderer } from 'electron';
import { ipcRenderer, shell } from 'electron';
import _find from 'lodash/find';

import React, { useReducer, useMemo, useRef, useEffect } from 'react';
Expand Down Expand Up @@ -133,8 +133,12 @@ const App = () => {

getVerAndItems();

ipcRenderer.on(`update-available`, (info) => {
new Notification(`New version available: ${info.version}`);
ipcRenderer.on(`update-available`, (ev, info) => {
const notify = new Notification(`New version available: ${info.version}`);

notify.onclick = () => {
shell.openItem(`https://github.com/cangzhang/champ-r/releases`);
};
});

// ipcRenderer.on(`update-downloaded`, () => {});
Expand Down

0 comments on commit 3e93388

Please sign in to comment.