Skip to content

Commit

Permalink
Fix version calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
dankocherga committed May 1, 2017
1 parent cf1d84b commit 3f5ce04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_process/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import MW from './dicts/mw/MonierWilliams';
import Apte from './dicts/apte/Apte';
import MWApi from './dicts/mw/Api';
import ApteApi from './dicts/apte/Api';
import {app} from 'electron';

const mwDict = new MW();
const apteDict = new Apte();
Expand All @@ -24,7 +25,7 @@ class Api {
});

ipc.on(Api.VERSION, function (event) {
event.returnValue = process.env.npm_package_version;
event.returnValue = app.getVersion();
});

mwApi.getMethods().map((method) => {
Expand Down

0 comments on commit 3f5ce04

Please sign in to comment.