1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
onion/js/history.js

16 lines
462 B
JavaScript
Raw Permalink Normal View History

import useRouterHistory from 'react-router/es6/useRouterHistory';
// History should be included by react-router
// eslint-disable-next-line import/no-extraneous-dependencies
import createBrowserHistory from 'history/lib/createBrowserHistory';
2015-10-13 14:19:08 +02:00
import AppConstants from './constants/application_constants';
2015-10-13 14:19:08 +02:00
const history = useRouterHistory(createBrowserHistory)({
basename: AppConstants.appBasePath
2015-10-13 14:19:08 +02:00
});
history.locationQueue = [];
export default history;