From ffe3404a2a9b36d69e880baa224375e82e64ae54 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Fri, 4 Sep 2020 15:43:44 -0700 Subject: Simplify service structure --- src/App.vue | 6 +++--- src/components/Service.vue | 17 ++++------------- 2 files changed, 7 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/App.vue b/src/App.vue index 03760fd..eb132d0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -161,7 +161,7 @@ export default { this.services = this.config.services; document.title = `${this.config.title} | ${this.config.subtitle}`; if (this.config.stylesheet) { - let stylesheet = ''; + let stylesheet = ""; for (const file of this.config.stylesheet) { stylesheet += `@import "${file}";`; } @@ -242,8 +242,8 @@ export default { }, }; }, - createStylesheet: function(css) { - let style = document.createElement('style'); + createStylesheet: function (css) { + let style = document.createElement("style"); style.appendChild(document.createTextNode(css)); document.head.appendChild(style); }, diff --git a/src/components/Service.vue b/src/components/Service.vue index 4e35b7d..59fdf17 100644 --- a/src/components/Service.vue +++ b/src/components/Service.vue @@ -1,11 +1,8 @@