diff --git a/src/background/looped_in/background.cljs b/src/background/looped_in/background.cljs index bcf06e0..2ed6ea3 100644 --- a/src/background/looped_in/background.cljs +++ b/src/background/looped_in/background.cljs @@ -79,30 +79,11 @@ (.sendMessage (.-id tab) (clj->js {:type "openSidebar"})))) -(defn get-user-id [] - (go - (let [user-id (-> js/browser - (.-storage) - (.-local) - (.get "userId") - (promise->channel) - ( js/browser - (.-storage) - (.-local) - (.set (clj->js {"userId" uuid}))) - uuid) - user-id)))) - (defn handle-message [msg sender respond] (case (.-type msg) "hits" (channel->promise (go @hits)) "fetchItem" (channel->promise - (go (clj->js (promise (get-user-id)))) + (go (clj->js ( js/browser (.-tabs)