 
 (enable-console-print!)
 
+(def uri (goog.Uri. js/document.URL))
+
+(def ssl? (= (.getScheme uri) "https"))
+
 ;; fire up repl
 #_(do
     (ns weasel.startup)


  (<! (timeout 500))

  (<! (s/connect! stage "ws://localhost:8080/geschichte/ws"))


  (defn collection-view [app owner]

         :add-post (partial add-post stage)
         :add-comment (partial add-comment stage)})
      om/IRenderState
      (render-state [this {:keys [selected-entries add-comment add-post] :as state}]
        (om/build
         main-view
         app
