mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-28 20:43:56 +03:00
Fix getting persist session id from url
This commit is contained in:
parent
28c2062390
commit
a5f400fa7a
|
@ -55,7 +55,7 @@ const finalCreateStore = compose(
|
|||
// Provides support for DevTools:
|
||||
devTools(),
|
||||
// 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);
|
||||
|
||||
const store = finalCreateStore(reducer);
|
||||
|
|
Loading…
Reference in New Issue
Block a user