diff options
Diffstat (limited to 'src/features/announcements')
-rw-r--r-- | src/features/announcements/api.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/announcements/api.js b/src/features/announcements/api.js index e5c5a7d6f..2ab5a15b2 100644 --- a/src/features/announcements/api.js +++ b/src/features/announcements/api.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { remote } from 'electron'; | 1 | import { app } from '@electron/remote'; |
2 | import Request from '../../stores/lib/Request'; | 2 | import Request from '../../stores/lib/Request'; |
3 | 3 | ||
4 | const debug = require('debug')('Ferdi:feature:announcements:api'); | 4 | const debug = require('debug')('Ferdi:feature:announcements:api'); |
@@ -6,7 +6,7 @@ const debug = require('debug')('Ferdi:feature:announcements:api'); | |||
6 | export const announcementsApi = { | 6 | export const announcementsApi = { |
7 | async getCurrentVersion() { | 7 | async getCurrentVersion() { |
8 | debug('getting current version of electron app'); | 8 | debug('getting current version of electron app'); |
9 | return Promise.resolve(remote.app.getVersion()); | 9 | return Promise.resolve(app.getVersion()); |
10 | }, | 10 | }, |
11 | 11 | ||
12 | async getChangelog(version) { | 12 | async getChangelog(version) { |