We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a938df3 commit 15243ceCopy full SHA for 15243ce
src/app/store/configureStore.js
@@ -6,9 +6,11 @@ export default function configureStore(next) {
6
return compose(
7
DevTools.instrument(),
8
persistState(
9
- window.location.href.match(
10
- /[?&]debug_session=([^&]+)\b/
11
- )
+ getPersistSession()
12
)
13
)(next);
14
}
+function getPersistSession() {
+ const matches = window.location.href.match(/[?&]debug_session=([^&]+)\b/);
15
+ return (matches && matches.length > 0)? matches[1] : null;
16
+}
0 commit comments