mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 13:22:39 +03:00
Fixed wrong data attribute used for site url
This commit is contained in:
parent
6933994738
commit
5ad294d630
@ -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
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user