Fix getting persist session id from url

This commit is contained in:
Peter Uithoven 2015-10-29 16:14:42 +01:00
parent 28c2062390
commit a5f400fa7a

View File

@ -55,7 +55,7 @@ const finalCreateStore = compose(
// Provides support for DevTools: // Provides support for DevTools:
devTools(), devTools(),
// Lets you write ?debug_session=<name> in address bar to persist debug sessions // Lets you write ?debug_session=<name> in address bar to persist debug sessions
persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/)) persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/)[1])
)(createStore); )(createStore);
const store = finalCreateStore(reducer); const store = finalCreateStore(reducer);