Skip to content

Commit

Permalink
fix(component): Prevent IE from throwing syntax errors (#21)
Browse files Browse the repository at this point in the history
Object method shorthand is not supported in older browser.
  • Loading branch information
antoinerey authored and egoist committed Feb 28, 2019
1 parent 336a1b2 commit 3d87cac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/StyleComponent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export default {
name: 'svg2vue-style',
functional: true,
render(h, ctx) {
// eslint-disable-next-line object-shorthand
render: function(h, ctx) {
return h('style', ctx.data, ctx.children)
}
}

0 comments on commit 3d87cac

Please sign in to comment.