Skip to content

Commit

Permalink
Switch to using clojure.java.browse as a fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Aug 3, 2020
1 parent 8e3b17d commit 7919617
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/portal/main.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns portal.main
(:require [clojure.java.io :as io]
(:require [clojure.java.browse :refer [browse-url]]
[clojure.java.io :as io]
[clojure.java.shell :refer [sh]]
[clojure.string :as s]
[clojure.edn :as edn]
Expand Down Expand Up @@ -43,7 +44,7 @@
"--disable-features=TranslateUI"
"--no-first-run"
(str "--app=" url))
(println (str "Unable to find chrome binary, goto " url " to view the portal ui.")))))
(browse-url url))))

(defn close-inspector []
(swap! rt/state assoc :portal/open? false)
Expand Down

0 comments on commit 7919617

Please sign in to comment.