mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Fix Node.js 4.x compatibility (#9503)
no issue
- fixes compatibility issue introduced in 7548ace32d
This commit is contained in:
parent
7548ace32d
commit
df1188d25a
@ -3,7 +3,9 @@
|
||||
module.exports = {
|
||||
name: 'html',
|
||||
type: 'dom',
|
||||
render({payload, env: {dom}}) {
|
||||
render(opts) {
|
||||
let payload = opts.payload;
|
||||
let dom = opts.env.dom;
|
||||
let caption = '';
|
||||
|
||||
if (payload.caption) {
|
||||
|
@ -3,7 +3,9 @@
|
||||
module.exports = {
|
||||
name: 'image',
|
||||
type: 'dom',
|
||||
render({payload, env: {dom}}) {
|
||||
render(opts) {
|
||||
let payload = opts.payload;
|
||||
let dom = opts.env.dom;
|
||||
let figure = dom.createElement('figure');
|
||||
|
||||
let img = dom.createElement('img');
|
||||
|
Loading…
Reference in New Issue
Block a user