                                                 :rules {}
                                                 :pacScript {}}
                                         :scope "regular"}))
-(defonce ^:export proxy-switch (atom false))
 (defonce ^:export proxy-types {:raw [:auto_detect
                                      :pac_script
                                      :direct

                                 {:scheme (:scheme p)
                                  :host (:host p)
                                  :port (js/parseInt (:port p))}}}))]
      (reset! proxy-settings s))))

(defn proxy-settings-to-url [s]
  (when-let [p (:value s)]


(defn on-doc-ready []
  (when-let [ready-state (.-readyState js/document)]
    (when (and (= "complete" ready-state)
             (:div proxy-ui))
      (set-link! "options_link" "resources/public/options.html")
      (set-link! "echo_link" "resources/public/echo.html")
      (restore-proxy-settings!)
      (ev/listen! (:button-run proxy-ui) :click on-proxy-run!))))

(set! (.-onreadystatechange js/document) on-doc-ready)
