aboutsummaryrefslogtreecommitdiff
path: root/app/preload
diff options
context:
space:
mode:
authorAndrei Gavrilescu <andrei.gavrilescu@8x8.com>2020-04-07 12:55:54 +0300
committerSaúl Ibarra Corretgé <s@saghul.net>2020-04-07 14:30:36 +0200
commit81d7aca4b2cec072c6de0ab2d9b0a5d427780b3c (patch)
treef7f6385712b95781551e8cd1f0fc6a03e494ab3c /app/preload
parent08d53c135e63434d38e3bb8ad02f112a58e0bbfb (diff)
fix security issue / update deps
Diffstat (limited to 'app/preload')
-rw-r--r--app/preload/preload.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/preload/preload.js b/app/preload/preload.js
new file mode 100644
index 0000000..16cf79a
--- /dev/null
+++ b/app/preload/preload.js
@@ -0,0 +1,13 @@
+const createElectronStorage = require('redux-persist-electron-storage');
+const { shell } = require('electron');
+const os = require('os');
+
+const jitsiMeetElectronUtils = require('jitsi-meet-electron-utils');
+
+window.jitsiNodeAPI = {
+ createElectronStorage,
+ osUserInfo: os.userInfo,
+ shellOpenExternal: shell.openExternal,
+ jitsiMeetElectronUtils
+};
+