aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-05-26 21:05:50 +0530
committerLibravatar GitHub <noreply@github.com>2021-05-26 21:05:50 +0530
commit296ce5ce62bcde6888df291f97105fa912ed7d35 (patch)
treeb28e7d2373f1020c1183469aa3a9feafecede569 /src/webview/recipe.js
parentAdded new entry in context menu: 'Download image' (#1449) (diff)
downloadferdium-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.js5
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 */
2import { ipcRenderer, remote, desktopCapturer } from 'electron'; 2import { ipcRenderer, desktopCapturer } from 'electron';
3import { getCurrentWebContents } from '@electron/remote';
3import path from 'path'; 4import path from 'path';
4import { autorun, computed, observable } from 'mobx'; 5import { autorun, computed, observable } from 'mobx';
5import fs from 'fs-extra'; 6import 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 });