aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-09-21 05:00:49 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-09-21 05:05:49 +0530
commitb67b5d755889c0f150fbd9ea1dfce396e037c09f (patch)
tree44540416d2aacdfdf6709c938bcf0436bb4c5b72 /src/webview
parentremove reference to '@electron/remote' module (for spell-checker) (#1968) (diff)
downloadferdium-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/webview')
-rw-r--r--src/webview/lib/RecipeWebview.js12
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 @@
1import { ipcRenderer } from 'electron'; 1import { ipcRenderer } from 'electron';
2import { BrowserWindow, desktopCapturer, getCurrentWebContents } from '@electron/remote'; 2import { BrowserWindow } from '@electron/remote';
3import { pathExistsSync, readFileSync, existsSync } from 'fs-extra'; 3import { pathExistsSync, readFileSync, existsSync } from 'fs-extra';
4 4
5const debug = require('debug')('Ferdi:Plugin:RecipeWebview'); 5const 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 *