Skip to content

Commit

Permalink
Enforce SSL on CSS stylesheet if secure true
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-ES committed Oct 4, 2016
1 parent e71411e commit adaf04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HEREMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ implements React.ChildContextProvider<HEREMapChildContext> {
} = this.props;

cache(getScriptMap(secure === true));
const stylesheetUrl = "//js.api.here.com/v3/3.0/mapsjs-ui.css";
const stylesheetUrl = `${secure === true ? "https:" : ""}//js.api.here.com/v3/3.0/mapsjs-ui.css`;
getLink(stylesheetUrl, "HERE Maps UI");
}

Expand Down

0 comments on commit adaf04a

Please sign in to comment.