diff options
author | 2021-09-21 05:00:49 +0530 | |
---|---|---|
committer | 2021-09-21 05:05:49 +0530 | |
commit | b67b5d755889c0f150fbd9ea1dfce396e037c09f (patch) | |
tree | 44540416d2aacdfdf6709c938bcf0436bb4c5b72 /src | |
parent | remove reference to '@electron/remote' module (for spell-checker) (#1968) (diff) | |
download | ferdium-app-b67b5d755889c0f150fbd9ea1dfce396e037c09f.tar.gz ferdium-app-b67b5d755889c0f150fbd9ea1dfce396e037c09f.tar.zst ferdium-app-b67b5d755889c0f150fbd9ea1dfce396e037c09f.zip |
security: do not expose electron API to services 2
After refactoring some recipes in getferdi#1964, we no longer need to expose some APIs to recipes.
Diffstat (limited to 'src')
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js index a4951ed69..9c195a9f0 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js | |||
@@ -1,5 +1,5 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import { BrowserWindow, desktopCapturer, getCurrentWebContents } from '@electron/remote'; | 2 | import { BrowserWindow } from '@electron/remote'; |
3 | import { pathExistsSync, readFileSync, existsSync } from 'fs-extra'; | 3 | import { pathExistsSync, readFileSync, existsSync } from 'fs-extra'; |
4 | 4 | ||
5 | const debug = require('debug')('Ferdi:Plugin:RecipeWebview'); | 5 | const debug = require('debug')('Ferdi:Plugin:RecipeWebview'); |
@@ -31,20 +31,10 @@ class RecipeWebview { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | // TODO Remove this once we implement a proper wrapper. | 33 | // TODO Remove this once we implement a proper wrapper. |
34 | get desktopCapturer() { | ||
35 | return desktopCapturer; | ||
36 | } | ||
37 | |||
38 | // TODO Remove this once we implement a proper wrapper. | ||
39 | get BrowserWindow() { | 34 | get BrowserWindow() { |
40 | return BrowserWindow; | 35 | return BrowserWindow; |
41 | } | 36 | } |
42 | 37 | ||
43 | // TODO Remove this once we implement a proper wrapper. | ||
44 | get getCurrentWebContents() { | ||
45 | return getCurrentWebContents; | ||
46 | } | ||
47 | |||
48 | /** | 38 | /** |
49 | * Initialize the loop | 39 | * Initialize the loop |
50 | * | 40 | * |