Skip to content

Commit

Permalink
respect configured root object in default-callback-fn-factory
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Nov 19, 2017
1 parent 6d5ab15 commit 59f68c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/chromex/defaults.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

(defn default-callback-fn-factory [config descriptor chan]
(fn [& args]
(if-let [error (oget js/chrome "runtime" "?lastError")]
(if-let [error (oget (:root config) "chrome" "runtime" "?lastError")]
(do
(set-last-error! error)
(report-error-if-needed! config descriptor error))
Expand Down

0 comments on commit 59f68c1

Please sign in to comment.