Skip to content

Commit

Permalink
feat: add a nav back button for gecko & wk
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox authored and Jack-Works committed Oct 10, 2019
1 parent 33c2c31 commit 4ac389d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import NearMe from '@material-ui/icons/NearMe'
import Assignment from '@material-ui/icons/Assignment'
import Phonelink from '@material-ui/icons/Phonelink'
import Code from '@material-ui/icons/Code'
import ArrowBack from '@material-ui/icons/ArrowBack'
import { ExportData } from './components/MobileImportExport/Export'
import './setup.ui'
import { SSRRenderer } from './utils/SSRRenderer'
Expand Down Expand Up @@ -119,7 +120,19 @@ function ResponsiveDrawer() {
<Divider />
<List onClick={handleDrawerToggle}>{Links1st}</List>
<Divider />
<List onClick={handleDrawerToggle}>{Links2rd}</List>
<List onClick={handleDrawerToggle}>
{Links2rd}
{(process.env.firefoxVariant === 'GeckoView' || process.env.target === 'WKWebview') && (
<MuiLink color="textPrimary" component={Link} to="/" onClick={window.close}>
<ListItem button>
<ListItemIcon>
<ArrowBack />
</ListItemIcon>
<ListItemText primary="Back" />
</ListItem>
</MuiLink>
)}
</List>
</div>
)

Expand Down

0 comments on commit 4ac389d

Please sign in to comment.