From 1aea88345a3f6a71ec2b52283e28b0182effff25 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Wed, 27 Sep 2017 22:20:31 +0200 Subject: [PATCH] Simplify meta tags --- JsonExcel.vue | 11 +++-------- README.md | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/JsonExcel.vue b/JsonExcel.vue index d4429d0..1140a14 100644 --- a/JsonExcel.vue +++ b/JsonExcel.vue @@ -56,14 +56,9 @@ export default { headerRow += ' \n'; } headerRow += '\n'; - var metatags = null; - this.meta.forEach(function(element) { - metatags += ''].join(''); + }, ''); return ''+metatags+'\n' + '\n\n' + headerRow+ diff --git a/README.md b/README.md index ddbf2b3..2a50d3a 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,10 @@ const app = new Vue({ } ], json_meta: [ - [{ + { "key": "charset", "value": "utf-8" - }] + } ], ```