From adaf04aad0927e4d027d3c723a7fb912133e880c Mon Sep 17 00:00:00 2001 From: Joshua Efiong Date: Tue, 4 Oct 2016 13:37:27 +0100 Subject: [PATCH 1/4] Enforce SSL on CSS stylesheet if secure true --- src/HEREMap.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HEREMap.tsx b/src/HEREMap.tsx index 48ae90f..0618e64 100644 --- a/src/HEREMap.tsx +++ b/src/HEREMap.tsx @@ -135,7 +135,7 @@ implements React.ChildContextProvider { } = 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"); } From bce0404c6c9fa6c988d6367ee84d2c05949d52bb Mon Sep 17 00:00:00 2001 From: Joshua Efiong Date: Tue, 4 Oct 2016 13:37:57 +0100 Subject: [PATCH 2/4] Update CHANGELOG.md --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa84272..64ce9e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ Every change, update, bug fix or new feature will be documented in this file as ### 0.3.2 +* 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 * Force the use of HTTPS to load the HERE Maps scripts if the "secure" flag on the HEREMap instance is set to true. From 556af783af4f6282cd6a6b389bf67220bf83f3c5 Mon Sep 17 00:00:00 2001 From: Joshua Efiong Date: Tue, 4 Oct 2016 13:38:17 +0100 Subject: [PATCH 3/4] Bump package version to 0.3.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 269f75b..fbd9a3d 100644 --- a/package.json +++ b/package.json @@ -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": { From 6d2d777fbe7e9a6a406a262e84e3d86e09a6e879 Mon Sep 17 00:00:00 2001 From: Joshua Efiong Date: Tue, 4 Oct 2016 16:21:20 +0100 Subject: [PATCH 4/4] Fix version number in CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64ce9e7..4c2c887 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ Every change, update, bug fix or new feature will be documented in this file as -### 0.3.2 +### 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.