From 59f68c12e0512b3c722c7313d5fe8c0dcc9ff24e Mon Sep 17 00:00:00 2001 From: Antonin Hildebrand Date: Sun, 19 Nov 2017 18:35:52 +0100 Subject: [PATCH] respect configured root object in default-callback-fn-factory --- src/lib/chromex/defaults.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/chromex/defaults.cljs b/src/lib/chromex/defaults.cljs index 44b899c4..410f6de6 100644 --- a/src/lib/chromex/defaults.cljs +++ b/src/lib/chromex/defaults.cljs @@ -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))