diff options
author | 2021-05-26 21:05:50 +0530 | |
---|---|---|
committer | 2021-05-26 21:05:50 +0530 | |
commit | 296ce5ce62bcde6888df291f97105fa912ed7d35 (patch) | |
tree | b28e7d2373f1020c1183469aa3a9feafecede569 /src/features/announcements/api.js | |
parent | Added new entry in context menu: 'Download image' (#1449) (diff) | |
download | ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.tar.gz ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.tar.zst ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.zip |
Replace 'remote' with 'electron/remote' (#1448)
* Locked new version of 'recipes' submodule with corresponding changes.
Diffstat (limited to 'src/features/announcements/api.js')
-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) { |