mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05: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
2 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue