mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +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:
|
// 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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user