Skip to content

Commit

Permalink
Remove LiveView read, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkomiu committed Nov 1, 2020
1 parent 2882902 commit 5e8f45a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions lib/phoenix_inline_svg/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,6 @@ defmodule PhoenixInlineSvg.Helpers do
|> read_svg_from_path
end

defp read_svg_file(icon_path, %Phoenix.LiveView.Socket{} = socket) do
[
Application.app_dir(socket.endpoint.config(:otp_app)),
PhoenixInlineSvg.Utils.config_or_default(:dir, "priv/static/svg/"),
icon_path
]
|> Path.join
|> read_svg_from_path
end

defp read_svg_file(icon_path, endpoint) do
[
Application.app_dir(endpoint.config(:otp_app)),
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule PhoenixInlineSvg.Mixfile do
def project do
[
app: :phoenix_inline_svg,
version: "1.3.1",
version: "1.3.2",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
Expand Down

0 comments on commit 5e8f45a

Please sign in to comment.