From e46d295346667cbfabd7ab19d170bb42c05f39fa Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 10 Jan 2018 18:55:44 -0500 Subject: [PATCH] Change message name --- src/looped_in/background.cljs | 2 +- src/looped_in/content.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/looped_in/background.cljs b/src/looped_in/background.cljs index e8dda52..9325ccb 100644 --- a/src/looped_in/background.cljs +++ b/src/looped_in/background.cljs @@ -26,7 +26,7 @@ "Handles messages from the content script" [msg] (match (.-type msg) - "fetchData" (channel->promise (fetch-submission (.-url msg))) + "urlVisited" (channel->promise (fetch-submission (.-url msg))) x (log/warn "Ignoring unknown message type" x))) (-> js/browser diff --git a/src/looped_in/content.cljs b/src/looped_in/content.cljs index 883f712..2584df0 100644 --- a/src/looped_in/content.cljs +++ b/src/looped_in/content.cljs @@ -45,6 +45,6 @@ (let [current-url (-> js/window (.-location) (.-href)) results-chan (-> js/browser (.-runtime) - (.sendMessage #js {:type "fetchData" :url current-url}) + (.sendMessage #js {:type "urlVisited" :url current-url}) (promise->channel))] (go (log/debug "results:" (