Support for get_app_version

This commit is contained in:
David Baker
2016-11-08 10:47:01 +00:00
parent 0441fcf3df
commit 8d46077ac2
2 changed files with 12 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ limitations under the License.
import VectorBasePlatform from './VectorBasePlatform';
import dis from 'matrix-react-sdk/lib/dispatcher';
import q from 'q';
const electron = require('electron');
const remote = electron.remote;
@@ -84,6 +85,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
notif.close();
}
getAppVersion() {
return q(electron.remote.app.getVersion());
}
pollForUpdate() {
// In electron we control the update process ourselves, since
// it needs to run in the main process, so we just run the timer