 
 (defn main []
   (secretary/set-config! :prefix "#")
-  (let [history (History.)]
-    (events/listen history "navigate"
+  (events/listen history "navigate"
                    (fn [event]
                      (secretary/dispatch! (.-token event))
                      (swap! app-state assoc :current-token (.-token event))

            [apollo.client.events :as e]
            [apollo.client.state :as state]
            [cljs.core.async :refer [<! sub chan dropping-buffer timeout]])

  (:import goog.History))

(def nav-map {:nav-browse "#/"
              :nav-recent "#/recent"

                       (<! (timeout 100))
                       (reset-post-filter))
                     true))
  (doto history (.setEnabled true)))

(main)
