[FIX #2530] Create `catalog` variable on client-side.

Signed-off-by: Oskar Thoren <ot@oskarthoren.com>
This commit is contained in:
Igor Mandrigin 2017-12-08 14:32:04 +01:00 committed by Oskar Thoren
parent db293e7ad5
commit d35ba2544e
No known key found for this signature in database
GPG Key ID: 5128AB0637CD85AF
1 changed files with 7 additions and 1 deletions

View File

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