From df05fd2bbcd99a5934c38023cff1c3bd62d612a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= <165856+hramos@users.noreply.github.com> Date: Mon, 4 Dec 2017 09:26:44 -0800 Subject: [PATCH] Switch Algolia DocSearch to load using https (#252) * Change docsearch to explicit https --- lib/core/Site.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/core/Site.js b/lib/core/Site.js index 0d1671032b..4ae6145034 100644 --- a/lib/core/Site.js +++ b/lib/core/Site.js @@ -32,10 +32,12 @@ class Site extends React.Component { (this.props.url || "index.html"); let latestVersion; - const highlightDefaultVersion = '9.12.0'; - const highlightConfig = this.props.config.highlight - || { version: highlightDefaultVersion, theme: 'default' }; - const highlightVersion = highlightConfig.version || highlightDefaultVersion; + const highlightDefaultVersion = "9.12.0"; + const highlightConfig = this.props.config.highlight || { + version: highlightDefaultVersion, + theme: "default" + }; + const highlightVersion = highlightConfig.version || highlightDefaultVersion; if (fs.existsSync(CWD + "/versions.json")) { latestVersion = require(CWD + "/versions.json")[0]; } @@ -62,7 +64,7 @@ class Site extends React.Component { {this.props.config.algolia && (