We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da8ddd0 commit 5369415Copy full SHA for 5369415
lib/index.js
@@ -9,10 +9,10 @@ function css(_) {
9
10
function StyledVue(Vue) {
11
Vue.component('styled-vue-global-css', {
12
- render(h) {
13
- const globalStyle = this.$parent.$options.globalStyle(this.$parent)
14
- let css = ''
15
- for (const key in globalStyle) {
+ render: function(h) {
+ var globalStyle = this.$parent.$options.globalStyle(this.$parent)
+ var css = ''
+ for (var key in globalStyle) {
16
css += key + ':' + globalStyle[key] + ';'
17
}
18
return h('style', {}, [':root {' + css + '}'])
0 commit comments