Fixed wrong data attribute used for site url

This commit is contained in:
Simon Backx 2022-07-05 12:13:20 +02:00
parent 6933994738
commit 5ad294d630
2 changed files with 2 additions and 1 deletions

View File

@ -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
};

View File

@ -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;