Skip to content

Commit

Permalink
#982 peaceful cooperation of Fontawesome 5 and Fontawesome 4
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Aug 11, 2018
1 parent 8092623 commit 95a6b6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/net/bootsfaces/listeners/InternalFALink.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ public void encodeBegin(FacesContext fc) throws IOException {
+ "/css/font-awesome.min.css";

ResponseWriter responseWriter = fc.getResponseWriter();
if (version.contains("4")) {
if (needsVersion4) {
responseWriter.append("<link type=\"text/css\" rel=\"stylesheet\" href=\"" + FONTAWESOME_CDN_URL
+ "\" crossorigin=\"anonymous\"/>");
}
}
if (version.contains("5")) {
responseWriter.append(
"<link type=\"text/css\" rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.2.0/css/all.css\" crossorigin=\"anonymous\"/>");
responseWriter.append(
"<link type=\"text/css\" rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.2.0/css/solid.css\" crossorigin=\"anonymous\"/>");

}
if (version.contains("4")) {
if (needsVersion4) {
responseWriter.append("<link type=\"text/css\" rel=\"stylesheet\" href=\"" + FONTAWESOME_CDN_URL
+ "\" crossorigin=\"anonymous\"/>");
}
}
}

@Override
Expand Down

0 comments on commit 95a6b6c

Please sign in to comment.