1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
onion/js/history.js
2016-06-06 16:07:16 +02:00

16 lines
348 B
JavaScript

'use strict';
import { useRouterHistory } from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import AppConstants from './constants/application_constants';
const history = useRouterHistory(createBrowserHistory)({
basename: AppConstants.baseUrl
});
history.locationQueue = [];
export default history;