diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-05-26 21:05:50 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-26 21:05:50 +0530 |
commit | 296ce5ce62bcde6888df291f97105fa912ed7d35 (patch) | |
tree | b28e7d2373f1020c1183469aa3a9feafecede569 /src/stores/AppStore.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/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index c409b6ac7..4af802460 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -1,7 +1,8 @@ | |||
1 | import { remote, ipcRenderer, shell } from 'electron'; | 1 | import { ipcRenderer, shell } from 'electron'; |
2 | import { | 2 | import { |
3 | action, computed, observable, | 3 | app, screen, powerMonitor, nativeTheme, getCurrentWindow, process as remoteProcess, |
4 | } from 'mobx'; | 4 | } from '@electron/remote'; |
5 | import { action, computed, observable } from 'mobx'; | ||
5 | import moment from 'moment'; | 6 | import moment from 'moment'; |
6 | import AutoLaunch from 'auto-launch'; | 7 | import AutoLaunch from 'auto-launch'; |
7 | import ms from 'ms'; | 8 | import ms from 'ms'; |
@@ -24,18 +25,11 @@ import { sleep } from '../helpers/async-helpers'; | |||
24 | 25 | ||
25 | const debug = require('debug')('Ferdi:AppStore'); | 26 | const debug = require('debug')('Ferdi:AppStore'); |
26 | 27 | ||
27 | const { | 28 | const mainWindow = getCurrentWindow(); |
28 | app, | ||
29 | screen, | ||
30 | powerMonitor, | ||
31 | nativeTheme, | ||
32 | } = remote; | ||
33 | |||
34 | const mainWindow = remote.getCurrentWindow(); | ||
35 | 29 | ||
36 | const defaultLocale = DEFAULT_APP_SETTINGS.locale; | 30 | const defaultLocale = DEFAULT_APP_SETTINGS.locale; |
37 | 31 | ||
38 | const executablePath = isMac ? remote.process.execPath : process.execPath; | 32 | const executablePath = isMac ? remoteProcess.execPath : process.execPath; |
39 | const autoLauncher = new AutoLaunch({ | 33 | const autoLauncher = new AutoLaunch({ |
40 | name: 'Ferdi', | 34 | name: 'Ferdi', |
41 | path: executablePath, | 35 | path: executablePath, |