aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/History.ts
diff options
context:
space:
mode:
authorEleanor Eng <eleanor.eng5@gmail.com>2019-11-16 16:37:36 -0500
committerEleanor Eng <eleanor.eng5@gmail.com>2019-11-16 16:37:36 -0500
commitb5111d4f4c44b845b7dd324e4332bcdc12eda0b8 (patch)
tree3c8ecc0af2accd5a49d6ff3ba1e46e7dab82858d /src/client/util/History.ts
parentc24c16efbf798eac1003811f6c0ed98bfc65f48e (diff)
parentab285371f6fb2a4f1e64888bafbc84b602f23416 (diff)
merge
Diffstat (limited to 'src/client/util/History.ts')
-rw-r--r--src/client/util/History.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/util/History.ts b/src/client/util/History.ts
index 899abbe40..1c51236cb 100644
--- a/src/client/util/History.ts
+++ b/src/client/util/History.ts
@@ -1,6 +1,5 @@
import { Doc, Opt, Field } from "../../new_fields/Doc";
import { DocServer } from "../DocServer";
-import { RouteStore } from "../../server/RouteStore";
import { MainView } from "../views/MainView";
import * as qs from 'query-string';
import { Utils, OmitKeys } from "../../Utils";
@@ -26,7 +25,7 @@ export namespace HistoryUtil {
// const handlers: ((state: ParsedUrl | null) => void)[] = [];
function onHistory(e: PopStateEvent) {
- if (window.location.pathname !== RouteStore.home) {
+ if (window.location.pathname !== "/home") {
const url = e.state as ParsedUrl || parseUrl(window.location);
if (url) {
switch (url.type) {