@openstack_dev/gatsby-theme-marketing-oif-core 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openstack_dev/gatsby-theme-marketing-oif-core",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Base theme for Marketing Sites",
5
5
  "author": "smarcet",
6
6
  "keywords": [
@@ -41,11 +41,11 @@ function SearchBar({ isMobile, isMobileMenuOpen, onSearchBarOpen }) {
41
41
  }
42
42
  }, [isSearchBarOpen]);
43
43
 
44
+ const searchWidgetBaseUrl = getEnvVariable(SEARCH_WIDGET_BASE_URL);
45
+
44
46
  return (
45
47
  <>
46
- <Script
47
- src={`${getEnvVariable(SEARCH_WIDGET_BASE_URL)}/widget/embed.min.js`}
48
- />
48
+ <Script src={`https://${searchWidgetBaseUrl}/widget/embed.min.js`} />
49
49
  {isMobile ? (
50
50
  <Box
51
51
  className={`${styles.openstackSearchBarMobile} openstack-search-bar ossw-mobile`}
@@ -58,7 +58,7 @@ function SearchBar({ isMobile, isMobileMenuOpen, onSearchBarOpen }) {
58
58
  height: { xs: isMobileMenuOpen ? "auto" : 0, md: 0 },
59
59
  color: "#8a959e",
60
60
  }}
61
- data-baseurl={getEnvVariable(SEARCH_WIDGET_BASE_URL)}
61
+ data-baseurl={searchWidgetBaseUrl}
62
62
  data-context="www-openstack"
63
63
  />
64
64
  ) : (