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))