mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-26 06:10:07 +02:00
chore(deps): remove process polyfill (#738)
The @atlaskit/navigation also works fine without reference to whether its running on mac or not (for the way its used in this project).
This commit is contained in:
parent
f58f8c90ff
commit
5c53a8cb3e
|
@ -7,7 +7,6 @@ import React, { Component } from 'react';
|
|||
import { connect } from 'react-redux';
|
||||
|
||||
import { SettingsButton, SettingsDrawer } from '../../settings';
|
||||
import { isElectronMac } from '../../utils';
|
||||
|
||||
import HelpButton from './HelpButton';
|
||||
import Logo from './Logo';
|
||||
|
@ -66,7 +65,6 @@ class Navbar extends Component<Props, *> {
|
|||
globalPrimaryActions = { this._getPrimaryActions() }
|
||||
globalPrimaryIcon = { <Logo /> }
|
||||
globalSecondaryActions = { this._getSecondaryActions() }
|
||||
isElectronMac = { isElectronMac() }
|
||||
isOpen = { false }
|
||||
isResizeable = { false } />
|
||||
);
|
||||
|
|
|
@ -1,17 +1,6 @@
|
|||
/* global process */
|
||||
|
||||
// @flow
|
||||
|
||||
|
||||
/**
|
||||
* Return true if Electron app is running on Mac system.
|
||||
*
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function isElectronMac() {
|
||||
return process.platform === 'darwin';
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizes the given server URL so it has the proper scheme.
|
||||
*
|
||||
|
|
16
package-lock.json
generated
16
package-lock.json
generated
|
@ -62,7 +62,6 @@
|
|||
"moment": "^2.29.1",
|
||||
"mousetrap": "^1.6.5",
|
||||
"patch-package": "6.2.2",
|
||||
"process": "^0.11.10",
|
||||
"react": "^16.14.0",
|
||||
"react-dom": "^16.14.0",
|
||||
"react-i18next": "^11.8.12",
|
||||
|
@ -11404,15 +11403,6 @@
|
|||
"renderkid": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/process": {
|
||||
"version": "0.11.10",
|
||||
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
|
||||
"integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">= 0.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/process-nextick-args": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
||||
|
@ -23466,12 +23456,6 @@
|
|||
"renderkid": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"process": {
|
||||
"version": "0.11.10",
|
||||
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
|
||||
"integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
|
||||
"dev": true
|
||||
},
|
||||
"process-nextick-args": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
||||
|
|
|
@ -181,7 +181,6 @@
|
|||
"moment": "^2.29.1",
|
||||
"mousetrap": "^1.6.5",
|
||||
"patch-package": "6.2.2",
|
||||
"process": "^0.11.10",
|
||||
"react": "^16.14.0",
|
||||
"react-dom": "^16.14.0",
|
||||
"react-i18next": "^11.8.12",
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
const path = require('path');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const webpack = require('webpack');
|
||||
const ELECTRON_VERSION = require('./package.json').devDependencies.electron;
|
||||
|
||||
module.exports = {
|
||||
|
@ -15,9 +14,6 @@ module.exports = {
|
|||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: './app/index.html'
|
||||
}),
|
||||
new webpack.ProvidePlugin({
|
||||
process: 'process/browser'
|
||||
})
|
||||
],
|
||||
output: {
|
||||
|
@ -84,10 +80,7 @@ module.exports = {
|
|||
resolve: {
|
||||
modules: [
|
||||
path.resolve('./node_modules')
|
||||
],
|
||||
alias: {
|
||||
process: 'process/browser'
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue