   (when url
     (-> (dommy/create-element :a)
         (dommy/set-attr! :href url)
-        (.-protocol))))
+        (.-protocol)
+        (lower-case))))
 
 (defn is-http?
   "Returns true if the string starts with http: or https:"

(ns relevance.utils
  (:require [cljs.core.async :refer [<!]]
            [dommy.core :as dommy]
            [cognitect.transit :as transit])
  (:require-macros [cljs.core.async.macros :refer [go go-loop]]))

  (when url
    (-> (dommy/create-element :a)
        (dommy/set-attr! :href url)
        (.-hostname)
        (lower-case))))

(defn protocol
  "Returns the protocol for a URL"
