Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #17 from rocjs/fix/better-ie9-support
Browse files Browse the repository at this point in the history
Better IE9 support
  • Loading branch information
dlmr committed May 24, 2016
2 parents 41079f7 + 539cc02 commit f72b753
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ReactDOM from 'react-dom';
import Router from 'react-router/lib/Router';
import useRouterHistory from 'react-router/lib/useRouterHistory';
import { createHistory } from 'history';
import { supportsHistory } from 'history/lib/DOMUtils';

import debug from 'debug';

Expand Down Expand Up @@ -84,7 +85,12 @@ export default function createClient({ createRoutes, createStore, mountNode }) {
const { syncHistoryWithStore } = require('react-router-redux');

const store = createStore(history, window.FLUX_STATE);
history = syncHistoryWithStore(history, store);
history = syncHistoryWithStore(history, store, {
// We do not want to use adjustUrlOnReplay if the browser does
// not support the history API with pushState since this can lead
// to redirect loops https://github.com/reactjs/react-router-redux/issues/285
adjustUrlOnReplay: supportsHistory()
});

routes = createRoutes(store);
locals = {
Expand Down
2 changes: 1 addition & 1 deletion packages/roc-package-web-app-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"react-helmet": "~3.1.0",
"react-redux": "~4.4.5",
"react-router": "~2.3.0",
"react-router-redial": "~0.1.0",
"react-router-redial": "~0.2.1",
"react-router-redux": "~4.0.2",
"react-server-status": "~1.0.0",
"redial": "~0.4.1",
Expand Down

0 comments on commit f72b753

Please sign in to comment.