Skip to content

Commit

Permalink
Merge pull request #6 from Josh-ES/security-css
Browse files Browse the repository at this point in the history
Security css
  • Loading branch information
Josh-ES authored Oct 4, 2016
2 parents e71411e + 6d2d777 commit 6d0acce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Every change, update, bug fix or new feature will be documented in this file as

<a name="Unreleased"></a>

### 0.3.3

* SSL Connections
* Force the use of HTTPS to load the HERE Maps UI stylesheet if the "secure" flag on the HEREMap instance is set to true.

### 0.3.2

* SSL Connections
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-here-maps",
"version": "0.3.2",
"version": "0.3.3",
"description": "React.js HERE Maps component",
"main": "dist/main.js",
"scripts": {
Expand Down
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 6d0acce

Please sign in to comment.