verdaccio-ui/src/history.js

16 lines
340 B
JavaScript
Raw Normal View History

2019-02-03 17:23:33 +07:00
/**
* @prettier
*/
import {createBrowserHistory} from 'history';
const history = createBrowserHistory();
// Listen for changes to the current location.
history.listen((location, action) => {
// location is an object like window.location
console.log('====>', action, location.pathname, location.state);
});
export default history;