diff --git a/apps/comments-ui/src/App.js b/apps/comments-ui/src/App.js index fbe4de8233..1288fe37c2 100644 --- a/apps/comments-ui/src/App.js +++ b/apps/comments-ui/src/App.js @@ -32,6 +32,7 @@ export default class App extends React.Component { action: 'init:running', initStatus: 'running', member: null, + comments: null, popupNotification: null, customSiteUrl: props.customSiteUrl }; diff --git a/apps/comments-ui/src/index.js b/apps/comments-ui/src/index.js index dc35c44b5a..277fb910b0 100644 --- a/apps/comments-ui/src/index.js +++ b/apps/comments-ui/src/index.js @@ -28,7 +28,7 @@ function getSiteData() { */ const scriptTag = document.querySelector('script[data-ghost-comments]'); if (scriptTag) { - const siteUrl = scriptTag.dataset.ghost; + const siteUrl = scriptTag.dataset.ghostComments; const apiKey = scriptTag.dataset.key; const apiUrl = scriptTag.dataset.api; const sentryDsn = scriptTag.dataset.sentryDsn;