Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Fix option to change browser doesn't show up on Windows (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 committed Jul 22, 2018
1 parent 1704f7c commit d12e926
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/root/enhanced-app-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Toolbar from '@material-ui/core/Toolbar';
import HelpIcon from '@material-ui/icons/Help';
import MoreVertIcon from '@material-ui/icons/MoreVert';
import SettingsIcon from '@material-ui/icons/Settings';
import PublicIcon from '@material-ui/icons/Public';

import connectComponent from '../../helpers/connect-component';

Expand Down Expand Up @@ -130,14 +131,12 @@ class EnhancedAppBar extends React.Component {
<ListItemText primary={STRING_ACTIVATE} />
</ListItem>
)}
{window.platform !== 'win32' && (
<ListItem button onClick={() => onUpdatePreference('browser', null)}>
<ListItemIcon>
<SettingsIcon />
<PublicIcon />
</ListItemIcon>
<ListItemText primary={STRING_CHANGE_BROWSER} />
</ListItem>
)}
<ListItem button onClick={() => requestOpenInBrowser('mailto:quang.lam2807@gmail.com?subject=[WebCatalog]')}>
<ListItemIcon>
<HelpIcon />
Expand Down

0 comments on commit d12e926

Please sign in to comment.