           (make-reload-if-reload-client [r]
             (when (get r :reload-client)
               (do (js/alert "СЕРВЕР ПРИСЛАЛ СИГНАЛ НА ОБНОВЛЕНИЕ")
-                (set! (.-location js/window) "/"))))]
-    
+                  (set! (.-location js/window) "/"))))]
+
     (let [req (goog.net.XhrIo.)
           progress-element (if disable-progress-element?
                              false

              (catch js/Error e
                (.getResponseText ee))))

          (print-error [s ee show-alert]            
            (println "ERROR IN " s "\n"
                     "LastErrorCode: " (.getLastErrorCode ee) "\n"
                     "Status: " (.getStatus ee) " - " (.getStatusText ee) "\n"

      (when progress-element
        (set! (-> progress-element .-style .-display) ""))


      (events/listen req goog.net.EventType.ERROR
                     (fn [e]
                       (print "REQUEST ERROR")
                       (let [ee (.-target e)]
                         (try
                           (make-reload-if-reload-client (t/read r (.getResponseText ee)))
                           (catch js/Error e
                             (println "ERR -1 " e)))
                         (print-error "ERROR" ee false)
                         (if error-fn (error-fn e)))))

      (events/listen req goog.net.EventType.SUCCESS
                     (fn [e]
                       (println "REQUEST SUCCESS")
                       (let [ee (.-target e)]
                         ;;(redirect-to-root-when-not-transit ee)
                         (try
                           (let [r (t/read r (.getResponseText ee))]
                             (make-reload-if-reload-client r)
                             (success-fn r))
                           (catch js/Error e                             
                             (println (str "ERR 1 " e))
                             (print-error "ERRON IN REQUEST SUCCESS" ee false))))))

      (events/listen req goog.net.EventType.COMPLETE
                     (fn [e]
