From 73ee2033cddec8f4d52b7a3bccbd5a36e9466273 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Mon, 25 May 2020 15:27:19 +0100 Subject: [PATCH] Remove pointless loop --- src/nginxconfig/templates/app.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nginxconfig/templates/app.vue b/src/nginxconfig/templates/app.vue index 5aa2258..6c2b697 100644 --- a/src/nginxconfig/templates/app.vue +++ b/src/nginxconfig/templates/app.vue @@ -65,12 +65,12 @@ limitations under the License.

Config files

-
+

{{ nginxDir }}/{{ conf[0] }}

-
+
@@ -169,8 +169,7 @@ limitations under the License. if (this.$data.active === index) this.$data.active = this.$data.domains.findIndex(d => d !== null); }, highlightFiles() { - for (const file of this.$refs.files) - Prism.highlightElement(file, true); + Prism.highlightAllUnder(this.$refs.files, true); }, checkChange(oldConf) { // If nothing has changed for a tick, we can use the config files