Skip to content
Snippets Groups Projects
Commit 0630631f authored by Cam Saül's avatar Cam Saül
Browse files

Fix overshadowing warning #4830

parent 11f44fad
No related merge requests found
......@@ -12,7 +12,7 @@
[metabase.util :as u]
[metabase.util.embed :as embed]))
(defn- load-file [path]
(defn- load-file-at-path [path]
(slurp (or (io/resource path)
(throw (Exception. (str "Cannot find '" path "'. Did you remember to build the Metabase frontend?"))))))
......@@ -24,7 +24,7 @@
(load-template (str "frontend_client/" entry ".html")
{:bootstrap_json (json/generate-string (public-settings/public-settings))
:embed_code (when embeddable? (embed/head uri))})
(load-file "frontend_client/init.html"))
(load-file-at-path "frontend_client/init.html"))
resp/response
(resp/content-type "text/html; charset=utf-8")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment