                    :ip "0.0.0.0" :port 9001)))
 
 
-;; weasel websocket
-(if (= "localhost" (.getDomain uri))
+;; weasel websocket, development only
+#_(if (= "localhost" (.getDomain uri))
   (do
     #_(ws-repl/connect "ws://localhost:9001" :verbose true)
     (figw/watch-and-reload
      ;; :websocket-url "ws://localhost:3449/figwheel-ws" default
      :jsload-callback (fn [] (print "reloaded")))))
-
-
-
-;; --- DATABASE ---
-
-(defn get-bookmarks [stage]
-  (when stage nil))
 
 
 ;; --- HELPER FUNCTIONS ---

              :get-user-bookmarks (om/transact! app :bookmarks (fn [old] data))
              :add-bookmark (om/transact! app :bookmarks (fn [old] (into data old)))
              :unknown)
            (if in
              (println "WARNING: Socket connection lost!")
              (recur (<! out)))))))
    om/IRenderState
    (render-state [this state]
      (bookmarks (:bookmarks app) owner state))))

  {[:.url-text] (do-> (set-attr :href url)
                      (content (if (= "" title) url title)))
   [:.url-ts] (content (.toLocaleString ts))})



(deftemplate bookmarks "templates/bookmarks.html"
