Skip to content

Commit 6d0acce

Browse files
authored
Merge pull request #6 from Josh-ES/security-css
Security css
2 parents e71411e + 6d2d777 commit 6d0acce

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Every change, update, bug fix or new feature will be documented in this file as
44

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

7+
### 0.3.3
8+
9+
* SSL Connections
10+
* Force the use of HTTPS to load the HERE Maps UI stylesheet if the "secure" flag on the HEREMap instance is set to true.
11+
712
### 0.3.2
813

914
* SSL Connections

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-here-maps",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "React.js HERE Maps component",
55
"main": "dist/main.js",
66
"scripts": {

src/HEREMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ implements React.ChildContextProvider<HEREMapChildContext> {
135135
} = this.props;
136136

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

0 commit comments

Comments
 (0)