Use relative paths for icons

This commit is contained in:
Max Veytsman
2022-09-02 18:57:26 -04:00
parent cf2401336d
commit 2d954961af
2 changed files with 9 additions and 8 deletions

View File

@ -69,7 +69,9 @@ defmodule Heroicons.Cache do
end
defp read_body(path) do
icon = File.read!(path)
icon =
Path.join(:code.priv_dir(:heroicons), path)
|> File.read!()
<<"<svg ", body::binary>> = icon