diff options
Diffstat (limited to 'src/router/index.js')
| -rw-r--r-- | src/router/index.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/router/index.js b/src/router/index.js index ff6e85f..9b141ee 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,18 +1,19 @@ import React from 'react'; -import { BrowserRouter, Route, Switch } from 'react-router-dom'; +import { MemoryRouter, Route, Switch } from 'react-router-dom'; import FeedContainer from '../containers/feed'; import OptionsContainer from '../containers/options'; const AppRoutes = () => { return ( - <BrowserRouter> + // @todo use browser router and generate prerendered options.html page for chrome extension + <MemoryRouter> <Switch> <Route exact path='/' component={ FeedContainer }/> <Route exact path='/options' component={ OptionsContainer }/> <Route component={ FeedContainer }/> </Switch> - </BrowserRouter> + </MemoryRouter> ); }; |
