aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/frontend.ex
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-07-16 17:53:22 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-07-16 17:53:22 +0300
commit9f92ccee60a08da3f6ebaf81250da1459bc0c24f (patch)
tree8f4abb40756d40b90c759b8cbdbeeebdfad7e937 /lib/pleroma/frontend.ex
parent6d3b93b60aa911a51a8d7366ad4afac6238577c7 (diff)
downloadpleroma-9f92ccee60a08da3f6ebaf81250da1459bc0c24f.tar.gz
refactor frontend task
Diffstat (limited to 'lib/pleroma/frontend.ex')
-rw-r--r--lib/pleroma/frontend.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/frontend.ex b/lib/pleroma/frontend.ex
index 941e2cfe9..0db697996 100644
--- a/lib/pleroma/frontend.ex
+++ b/lib/pleroma/frontend.ex
@@ -31,12 +31,12 @@ defmodule Pleroma.Frontend do
end
@doc """
- Returns path to index.html file for the frontend from the given config.
+ Returns path to the requested file for the frontend from the given config.
If config is not provided, config for the `:primary` frontend is fetched and used.
- If index.html file is not found for the requested frontend, the function fallback
+ If the requested file is not found for the frontend, the function fallback
to looking the file at instance static directory and then, in case of failure,
in priv/static directory.
- Path returned in case of success is guaranteed to be existing file.
+ Path returned in case of success is guaranteed to be of existing file.
"""
@spec fe_file_path(String.t(), map()) :: {:ok, String.t()} | {:error, String.t()}
def fe_file_path(filename, config \\ nil) do