diff options
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 | }); |