aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Settgast <csett86@web.de>2022-03-28 20:38:03 +0200
committerGitHub <noreply@github.com>2022-03-28 20:38:03 +0200
commita5051074560ec8631bd7ce85e58195516ab9220b (patch)
tree38c608cef814e4a560cff818cb2d4db86d8dc6d1
parentbc71f954ac201cde1591d607df51fbfebdb27e36 (diff)
chore: use require instead of global process (#741)
-rw-r--r--app/preload/preload.js4
-rw-r--r--main.js3
2 files changed, 3 insertions, 4 deletions
diff --git a/app/preload/preload.js b/app/preload/preload.js
index fad8ea5..7eeee83 100644
--- a/app/preload/preload.js
+++ b/app/preload/preload.js
@@ -1,5 +1,3 @@
-/* global process */
-
const { ipcRenderer } = require('electron');
const { RemoteControl,
setupScreenSharingRender,
@@ -8,9 +6,9 @@ const { RemoteControl,
setupWiFiStats,
setupPowerMonitorRender
} = require('@jitsi/electron-sdk');
+const { platform } = require('process');
const { openExternalLink } = require('../features/utils/openExternalLink');
-const platform = process.platform;
const whitelistedIpcChannels = [ 'protocol-data-msg', 'renderer-ready' ];
/**
diff --git a/main.js b/main.js
index 7f746d8..c26bdce 100644
--- a/main.js
+++ b/main.js
@@ -1,4 +1,4 @@
-/* global __dirname, process */
+/* global __dirname */
const {
BrowserWindow,
@@ -20,6 +20,7 @@ const {
setupScreenSharingMain
} = require('@jitsi/electron-sdk');
const path = require('path');
+const process = require('process');
const URL = require('url');
const config = require('./app/features/config');
const { openExternalLink } = require('./app/features/utils/openExternalLink');