Skip to content

Commit 7efe10f

Browse files
committed
update constant name
1 parent 80b1b83 commit 7efe10f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/layouts/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Footer from 'components/LayoutFooter';
2020
import Header from 'components/LayoutHeader';
2121
import {media} from 'theme';
2222
import loadScript from 'utils/loadScript';
23-
import {docsearchURL} from 'site-constants';
23+
import {algoliaURL} from 'site-constants';
2424

2525
// Import global styles
2626
import '../prism-styles';
@@ -30,7 +30,7 @@ import 'css/algolia.css';
3030

3131
class Template extends Component {
3232
componentDidMount() {
33-
loadScript(docsearchURL).then(() => {
33+
loadScript(algoliaURL).then(() => {
3434
// Initialize Algolia search.
3535
// TODO Is this expensive? Should it be deferred until a user is about to search?
3636
// eslint-disable-next-line no-undef

src/site-constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
const urlRoot = 'https://reactjs.org';
1616
const version = '16.0.0';
1717
const babelURL = '//unpkg.com/babel-standalone@6.26.0/babel.min.js';
18-
const docsearchURL = '//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js';
18+
const algoliaURL = '//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js';
1919

20-
export {urlRoot, version, babelURL, docsearchURL};
20+
export {urlRoot, version, babelURL, algoliaURL};

0 commit comments

Comments
 (0)