                           {:init-state
                            {:update-filters update-filters
                             :enqueue enqueue}})]
-        (if (mobile? owner)
+        (if (mobile?)
           (apply dom/div #js {:className "results tracks" }
                  (dom/div #js {:className "track"}
                           (dom/span {:id "queue-all-tracks"}

                                 })
                 )))))

(defn detect-platform []
  (let [w (.-innerWidth js/window)]
    (condp > w
      480 :phone
      600 :tablet
      :desktop)))

(defn app-view [app owner]
  (reify
    om/IInitState

            button (dom/button #js {:onClick (fn [e] (put! enqueue @track))}
                               "+")]
        (apply dom/div #js {:className "track"}
               (if (mobile?)
                 [title artist album duration button]
                 [artist album title duration button]))))))

