forked from FaisalUmair/udemy-downloader-gui
-
-
Notifications
You must be signed in to change notification settings - Fork 215
/
preload.js
22 lines (18 loc) · 849 Bytes
/
preload.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// preload.js
// All the Node.js APIs are available in the preload process.
// It has the same sandbox as a Chrome extension.
//https://www.electronjs.org/docs/latest/tutorial/tutorial-preload
// const { contextBridge } = require('electron');
// contextBridge.exposeInMainWorld('Sentry', {
// captureException: (exception, context = undefined) => Sentry.captureException(exception, context),
// captureMessage: (message) => Sentry.captureMessage(message)
// });
// const { contextBridge, app } = require('electron');
// contextBridge.exposeInMainWorld('AppEnviron', {
// userDataPath: app.getPath("userData"),
// tempPath: app.getPath("temp"),
// appDataPath: app.getPath("appData"),
// isMac: process.platform === "darwin",
// isWin: process.platform === "win32",
// isLinux: process.platform === "linux",
// });