diff --git a/ghost/sodo-search/src/index.js b/ghost/sodo-search/src/index.js index ab01f29083..7f3ae493bc 100644 --- a/ghost/sodo-search/src/index.js +++ b/ghost/sodo-search/src/index.js @@ -15,9 +15,9 @@ function getSiteData() { /** * @type {HTMLElement} */ - const scriptTag = document.querySelector('script[data-ghost]'); + const scriptTag = document.querySelector('script[data-ghost-search]'); if (scriptTag) { - const siteUrl = scriptTag.dataset.ghost; + const siteUrl = scriptTag.dataset.ghostSearch; const apiKey = scriptTag.dataset.key; const apiUrl = scriptTag.dataset.api; return {siteUrl, apiKey, apiUrl};