From 3c778ef95ea38b16e4c9631486738d99f7325b31 Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 28 Apr 2020 21:56:13 +0200 Subject: [PATCH] Cosmetics --- radicale/web/internal_data/fn.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/radicale/web/internal_data/fn.js b/radicale/web/internal_data/fn.js index 668df03..cd40e8a 100644 --- a/radicale/web/internal_data/fn.js +++ b/radicale/web/internal_data/fn.js @@ -80,17 +80,17 @@ const CollectionType = { } return this.ADDRESSBOOK; } - let union = ""; + let union = []; if (a.search(this.CALENDAR) !== -1 || b.search(this.CALENDAR) !== -1) { - union += (union ? "_" : "") + this.CALENDAR; + union.push(this.CALENDAR); } if (a.search(this.JOURNAL) !== -1 || b.search(this.JOURNAL) !== -1) { - union += (union ? "_" : "") + this.JOURNAL; + union.push(this.JOURNAL); } if (a.search(this.TASKS) !== -1 || b.search(this.TASKS) !== -1) { - union += (union ? "_" : "") + this.TASKS; + union.push(this.TASKS); } - return union; + return union.join("_"); } };