mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Removed init of mobiledoc html renderer on boot
no issue - the lazy-loading `mobiledocHtmlRenderer` getter was being accessed by the email renderer that gets initialized during boot - switched the pattern to match our lexical lib where we have a `render()` method that doesn't load the renderer until it's actually needed
This commit is contained in:
parent
67278d91a1
commit
e136ecb09f
2 changed files with 5 additions and 1 deletions
|
@ -73,6 +73,10 @@ module.exports = {
|
|||
return mobiledocHtmlRenderer;
|
||||
},
|
||||
|
||||
render(mobiledoc, options) {
|
||||
return this.mobiledocHtmlRenderer.render(mobiledoc, options);
|
||||
},
|
||||
|
||||
get htmlToMobiledocConverter() {
|
||||
try {
|
||||
if (process.env.CI) {
|
||||
|
|
|
@ -59,7 +59,7 @@ class EmailServiceWrapper {
|
|||
settingsCache,
|
||||
settingsHelpers,
|
||||
renderers: {
|
||||
mobiledoc: mobiledocLib.mobiledocHtmlRenderer,
|
||||
mobiledoc: mobiledocLib,
|
||||
lexical: lexicalLib
|
||||
},
|
||||
imageSize,
|
||||
|
|
Loading…
Add table
Reference in a new issue