[FIX #2530] Create `catalog` variable on client-side.
Signed-off-by: Oskar Thoren <ot@oskarthoren.com>
This commit is contained in:
parent
db293e7ad5
commit
d35ba2544e
|
@ -132,9 +132,15 @@
|
||||||
(when status
|
(when status
|
||||||
(call-module #(.discardTransaction status id))))
|
(call-module #(.discardTransaction status id))))
|
||||||
|
|
||||||
|
(defn- append-catalog-init [js]
|
||||||
|
(str js "\n" "var catalog = JSON.stringify(_status_catalog); catalog;"))
|
||||||
|
|
||||||
(defn parse-jail [bot-id file callback]
|
(defn parse-jail [bot-id file callback]
|
||||||
(when status
|
(when status
|
||||||
(call-module #(.parseJail status bot-id file callback))))
|
(call-module #(.parseJail status
|
||||||
|
bot-id
|
||||||
|
(append-catalog-init file)
|
||||||
|
callback))))
|
||||||
|
|
||||||
(defn execute-call [{:keys [jail-id path params callback]}]
|
(defn execute-call [{:keys [jail-id path params callback]}]
|
||||||
(when status
|
(when status
|
||||||
|
|
Loading…
Reference in New Issue