Skip to content

Commit

Permalink
implant: get-intercom should not fail on missing intercom key
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Oct 14, 2016
1 parent 6c0c2bc commit 106afaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/implant/dirac/implant/feedback.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns dirac.implant.feedback
(:require [oops.core :refer [oget oset! ocall oapply oset!+]]
(:require [oops.core :refer [oget oset! ocall oapply oset!+ oget+]]
[chromex.logging :refer-macros [log warn error group group-end]]
[dirac.settings :refer-macros [get-flush-pending-feedback-messages-key
get-dirac-intercom-key]]
Expand All @@ -8,7 +8,7 @@
(defonce pending-messages (atom []))

(defn get-intercom []
(oget js/window (get-dirac-intercom-key)))
(oget+ js/window (str "?" (get-dirac-intercom-key))))

(defn flush-pending-messages! []
(let [messages @pending-messages]
Expand Down

0 comments on commit 106afaf

Please sign in to comment.