Skip to content

Commit

Permalink
fix(electron): Provide app version in Device.getInfo() (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannkf authored Mar 12, 2020
1 parent 078284d commit 0998ae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electron/src/electron/device.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DeviceBatteryInfo, DeviceInfo, DeviceLanguageCodeResult, DevicePlugin, DevicePluginWeb, WebPlugin } from "@capacitor/core";
const { app } = require('electron').remote;

declare var navigator: any;
const webDevice = new DevicePluginWeb();
Expand All @@ -17,7 +18,7 @@ export class DevicePluginElectron extends WebPlugin implements DevicePlugin {
return {
model: info.model,
platform: <'electron'> 'electron',
appVersion: '',
appVersion: app.getVersion(),
appBuild: '',
operatingSystem: info.operatingSystem,
osVersion: info.osVersion,
Expand Down

0 comments on commit 0998ae8

Please sign in to comment.