From 293a663763309c17a320ebee8f5dd80c985c0238 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 7 Feb 2018 09:12:22 -0500 Subject: [PATCH] Remove unecessary user id generation code --- src/background/looped_in/background.cljs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) 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)