Commit b79c0ee3 authored by Ricardo J. Mendez's avatar Ricardo J. Mendez

Clean up

parent d7f9cd16
......@@ -26,7 +26,7 @@
(defn now [] (.now js/Date))
(def relevant-tab-keys [:windowId :id :active :url :selected :start-time :title :favIconUrl])
(def relevant-tab-keys [:windowId :id :active :url :start-time :title :favIconUrl])
(def select-tab-keys #(select-keys % relevant-tab-keys))
(def url-time-path [:data :url-times])
......@@ -297,17 +297,17 @@
;;;;-------------------------------------
(defn init-time-tracking []
(defn time-tracking []
(dispatch-sync [::initialize])
(go-loop
[conn (runtime/on-connect)]
(let [content (<! conn)]
[connections (runtime/on-connect)]
(let [content (<! connections)]
(console/log "--> Background received" (<! content))
(>! content :background-ack)
(recur conn)))
(recur connections)))
)
(defn init-click-handling []
(defn browser-click-handling []
(go-loop
[channel (browser/on-clicked)]
(when (<! channel)
......@@ -323,7 +323,7 @@
))
(defn ^:export main []
(init-time-tracking)
(init-click-handling))
(time-tracking)
(browser-click-handling))
(main)
\ No newline at end of file
(ns booklet.shared-handlers
(:require [booklet.utils :refer [on-channel from-transit]]
[cljs.core.async :refer [>! <!]]
[cljs.core :refer [random-uuid]]
[cljsjs.react-bootstrap]
[khroma.log :as console]
[re-frame.core :refer [dispatch register-sub register-handler subscribe dispatch-sync]])
(:require-macros [cljs.core :refer [goog-define]]
[cljs.core.async.macros :refer [go go-loop]]
[reagent.ratom :refer [reaction]]))
(:require [khroma.log :as console]
[re-frame.core :refer [register-handler]]))
(register-handler
......
(ns booklet.startpage
(:require [booklet.utils :refer [from-transit]]
[dommy.core :refer-macros [sel sel1] :as dommy]
[dommy.core :refer-macros [sel sel1]]
[khroma.runtime :as runtime]
[khroma.log :as console]
[cljs.core.async :refer [>! <!]]
......@@ -30,7 +30,6 @@
base (sel1 :.web_regular_results)]
(doseq [node nodes]
(transform-result-node! (:url-times data) node))
(console/log "Base" base)
(doall
(->>
nodes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment