Fixed HashRouter being used in production.

This commit is contained in:
2018-10-28 21:57:50 +11:00
parent 0997615fdc
commit 3b18d1b1fa

View File

@ -72,7 +72,7 @@ class App extends React.Component {
//For testing you can switch the router type
let RouterType = BrowserRouter;
if(true) RouterType = HashRouter;
if(process.env.NODE_ENV === 'development') RouterType = HashRouter;
return (
<RouterType>