diff options
author | 2021-05-26 21:05:50 +0530 | |
---|---|---|
committer | 2021-05-26 21:05:50 +0530 | |
commit | 296ce5ce62bcde6888df291f97105fa912ed7d35 (patch) | |
tree | b28e7d2373f1020c1183469aa3a9feafecede569 /src/electron/webview-ime-focus.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/electron/webview-ime-focus.js')
-rw-r--r-- | src/electron/webview-ime-focus.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/electron/webview-ime-focus.js b/src/electron/webview-ime-focus.js index b41232b63..b9421eb06 100644 --- a/src/electron/webview-ime-focus.js +++ b/src/electron/webview-ime-focus.js | |||
@@ -1,4 +1,4 @@ | |||
1 | const { remote } = require('electron'); | 1 | const { webContents } = require('@electron/remote'); |
2 | const { releaseDocumentFocus } = require('./webview-ime-focus-helpers'); | 2 | const { releaseDocumentFocus } = require('./webview-ime-focus-helpers'); |
3 | 3 | ||
4 | function giveWebviewDocumentFocus(element) { | 4 | function giveWebviewDocumentFocus(element) { |
@@ -10,7 +10,7 @@ function giveWebviewDocumentFocus(element) { | |||
10 | } | 10 | } |
11 | 11 | ||
12 | function elementIsUnfocusedWebview(element) { | 12 | function elementIsUnfocusedWebview(element) { |
13 | return element.tagName === 'WEBVIEW' && !remote.webContents.fromId(element.getWebContentsId()).isFocused(); | 13 | return element.tagName === 'WEBVIEW' && !webContents.fromId(element.getWebContentsId()).isFocused(); |
14 | } | 14 | } |
15 | 15 | ||
16 | function webviewDidAutofocus(element) { | 16 | function webviewDidAutofocus(element) { |