From 309174743800391f0dd04d23eefcfe8a8195d306 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 11 Dec 2024 20:35:32 -0500 Subject: [PATCH] ssb: prettier. --- apps/ssb/tf-app.js | 7 ++++++- apps/ssb/tf-news.js | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js index 51d581e8..6e7e3701 100644 --- a/apps/ssb/tf-app.js +++ b/apps/ssb/tf-app.js @@ -123,7 +123,12 @@ class TfElement extends LitElement { let index = channel_names.indexOf(this.hash.substring(1)); if (index != -1) { index += delta; - this.set_hash('#' + encodeURIComponent(channel_names[(index + channel_names.length) % channel_names.length])); + this.set_hash( + '#' + + encodeURIComponent( + channel_names[(index + channel_names.length) % channel_names.length] + ) + ); } } diff --git a/apps/ssb/tf-news.js b/apps/ssb/tf-news.js index 4c230136..62df710a 100644 --- a/apps/ssb/tf-news.js +++ b/apps/ssb/tf-news.js @@ -165,7 +165,7 @@ class TfNewsElement extends LitElement { } else { if (group.length > 0) { result.push({ - rowid: Math.max(...group.map(x => x.rowid)), + rowid: Math.max(...group.map((x) => x.rowid)), type: 'contact_group', messages: group, }); @@ -176,7 +176,7 @@ class TfNewsElement extends LitElement { } if (group.length > 0) { result.push({ - rowid: Math.max(...group.map(x => x.rowid)), + rowid: Math.max(...group.map((x) => x.rowid)), type: 'contact_group', messages: group, });