zcash-grant-system/frontend/client/store/history.ts

12 lines
249 B
TypeScript
Raw Normal View History

2018-11-13 08:07:09 -08:00
import { createBrowserHistory, createMemoryHistory } from 'history';
const history = (() => {
if (typeof window === 'undefined') {
return createMemoryHistory();
} else {
return createBrowserHistory();
}
})();
2018-11-13 08:07:37 -08:00
export default history;