Skip to content

Commit

Permalink
using protocol relative urls
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Jul 12, 2024
1 parent d51d345 commit f13d37a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fa.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ caption string name:
optional ftd.color color:
integer size: 24

-- helper.phosphor-icon: $svg-url(icon=$regular.name, prefix=regular)
-- helper.icon: $svg-url(icon=$regular.name, prefix=regular)
size: $regular.size
color: $regular.color

Expand All @@ -34,4 +34,4 @@ color: $regular.color
string icon:
string prefix:

"https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/svgs/" + prefix + "/" + icon + ".svg"
"//raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/svgs/" + prefix + "/" + icon + ".svg"
4 changes: 2 additions & 2 deletions phosphor.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ color: $regular.color
string prefix:
string icon:

"http://raw.githubusercontent.com/phosphor-icons/core/main/raw/" + prefix + "/" + icon + "-" + prefix + ".svg"
"//raw.githubusercontent.com/phosphor-icons/core/main/raw/" + prefix + "/" + icon + "-" + prefix + ".svg"



Expand All @@ -103,4 +103,4 @@ string icon:
-- string regular-svg-url(icon):
string icon:

"http://raw.githubusercontent.com/phosphor-icons/core/main/raw/regular/" + icon + ".svg"
"//raw.githubusercontent.com/phosphor-icons/core/main/raw/regular/" + icon + ".svg"

0 comments on commit f13d37a

Please sign in to comment.