diff --git a/src/background/looped_in/background.cljs b/src/background/looped_in/background.cljs index 7173bb6..bce6204 100644 --- a/src/background/looped_in/background.cljs +++ b/src/background/looped_in/background.cljs @@ -2,10 +2,13 @@ (enable-console-print!) +(def browser-action (.-browserAction js/browser)) + (-> js/browser (.-runtime) (.-onMessage) (.addListener (fn [msg] - (-> js/browser - (.-browserAction) - (.setBadgeText (.-numComments msg)))))) + (prn msg) + (.setBadgeBackgroundColor browser-action #js {:color "#232323"}) + (.setBadgeText browser-action + #js {:text (str (.-numComments msg))}))))