Updated comments helper to inject comments-ui version

refs https://github.com/TryGhost/Team/issues/1664

This is required so that the comments ui can correctly load assets from unpkg
This commit is contained in:
Fabien "egg" O'Carroll 2022-07-08 13:15:06 +02:00 committed by Simon Backx
parent d05b94a975
commit 34047737b8
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,8 @@ async function comments(options) {
'sentry-dsn': '', /* todo: insert sentry dsn key here */
'color-scheme': colorScheme,
'avatar-saturation': avatarSaturation,
'accent-color': accentColor
'accent-color': accentColor,
'app-version': config.get('comments:version')
};
let dataAttributes = '';

View File

@ -149,6 +149,7 @@
"url": "https://www.gravatar.com/avatar/{hash}?s={size}&r={rating}&d={_default}"
},
"comments": {
"url": "https://unpkg.com/@tryghost/comments@~0.0.0/umd/portal.min.js"
"url": "https://unpkg.com/@tryghost/comments-ui@~0.1.0/umd/comments-ui.min.js",
"version": "0.1.0"
}
}