diff options
author | 2021-05-26 21:05:50 +0530 | |
---|---|---|
committer | 2021-05-26 21:05:50 +0530 | |
commit | 296ce5ce62bcde6888df291f97105fa912ed7d35 (patch) | |
tree | b28e7d2373f1020c1183469aa3a9feafecede569 /src/webview/recipe.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/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 2701603cb..6180270b2 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -1,5 +1,6 @@ | |||
1 | /* eslint-disable import/first */ | 1 | /* eslint-disable import/first */ |
2 | import { ipcRenderer, remote, desktopCapturer } from 'electron'; | 2 | import { ipcRenderer, desktopCapturer } from 'electron'; |
3 | import { getCurrentWebContents } from '@electron/remote'; | ||
3 | import path from 'path'; | 4 | import path from 'path'; |
4 | import { autorun, computed, observable } from 'mobx'; | 5 | import { autorun, computed, observable } from 'mobx'; |
5 | import fs from 'fs-extra'; | 6 | import fs from 'fs-extra'; |
@@ -158,7 +159,7 @@ class RecipeController { | |||
158 | autorun(() => this.update()); | 159 | autorun(() => this.update()); |
159 | 160 | ||
160 | document.addEventListener('DOMContentLoaded', () => { | 161 | document.addEventListener('DOMContentLoaded', () => { |
161 | this.findInPage = new FindInPage(remote.getCurrentWebContents(), { | 162 | this.findInPage = new FindInPage(getCurrentWebContents(), { |
162 | inputFocusColor: '#CE9FFC', | 163 | inputFocusColor: '#CE9FFC', |
163 | textColor: '#212121', | 164 | textColor: '#212121', |
164 | }); | 165 | }); |