diff options
author | Christoph Settgast <csett86@web.de> | 2022-03-25 07:05:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 07:05:38 +0100 |
commit | 5c53a8cb3ea468ca43db448273d6c1d18d8f36ee (patch) | |
tree | 888b22def38c335151bb7fa7a807f87960cd6b6b /app/features | |
parent | f58f8c90ffa0fb6cb7a82d4c7854043a055f4e13 (diff) |
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).
Diffstat (limited to 'app/features')
-rw-r--r-- | app/features/navbar/components/Navbar.js | 2 | ||||
-rw-r--r-- | app/features/utils/functions.js | 11 |
2 files changed, 0 insertions, 13 deletions
diff --git a/app/features/navbar/components/Navbar.js b/app/features/navbar/components/Navbar.js index 41e9e00..952519a 100644 --- a/app/features/navbar/components/Navbar.js +++ b/app/features/navbar/components/Navbar.js @@ -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 } /> ); diff --git a/app/features/utils/functions.js b/app/features/utils/functions.js index 36db8b3..0a1149d 100644 --- a/app/features/utils/functions.js +++ b/app/features/utils/functions.js @@ -1,18 +1,7 @@ -/* 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. * * @param {string} url - URL with or without scheme. |