aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/History.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-16 15:48:22 -0400
committerbob <bcz@cs.brown.edu>2019-09-16 15:48:22 -0400
commitc851129c58d142c67f034924e0e7e04f1c3e5017 (patch)
tree9a91227d5dd54d4795bcdaa8da9ab96503b10f49 /src/client/util/History.ts
parent5e3c12128f4d15d621b323e0f1d78bfff2452b92 (diff)
cleaning up code in collectionfreeformview
Diffstat (limited to 'src/client/util/History.ts')
-rw-r--r--src/client/util/History.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/util/History.ts b/src/client/util/History.ts
index e9ff21b22..67c8e931d 100644
--- a/src/client/util/History.ts
+++ b/src/client/util/History.ts
@@ -52,7 +52,9 @@ export namespace HistoryUtil {
}
export function getState(): ParsedUrl {
- return copyState(history.state);
+ let state = copyState(history.state);
+ state.initializers = state.initializers || {};
+ return state;
}
// export function addHandler(handler: (state: ParsedUrl | null) => void) {