diff options
author | Christoph Settgast <csett86@web.de> | 2022-03-28 20:38:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 20:38:03 +0200 |
commit | a5051074560ec8631bd7ce85e58195516ab9220b (patch) | |
tree | 38c608cef814e4a560cff818cb2d4db86d8dc6d1 | |
parent | bc71f954ac201cde1591d607df51fbfebdb27e36 (diff) |
chore: use require instead of global process (#741)
-rw-r--r-- | app/preload/preload.js | 4 | ||||
-rw-r--r-- | main.js | 3 |
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' ]; /** @@ -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'); |