From b5934c17d8a7e5a8fbad016d79916210d41fecd1 Mon Sep 17 00:00:00 2001 From: Kuba Suder Date: Sat, 11 May 2024 23:17:56 +0200 Subject: [PATCH] removed trailing whitespace --- api.js | 2 +- embed_component.js | 2 +- models.js | 6 +++--- post_component.js | 4 ++-- skythread.js | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api.js b/api.js index 540e40f..8b990eb 100644 --- a/api.js +++ b/api.js @@ -38,7 +38,7 @@ class HandleCache { setHandleDid(handle, did) { this.prepareCache(); this.cache[handle] = did; - this.saveCache(); + this.saveCache(); } /** @param {string} did, @returns {string | undefined} */ diff --git a/embed_component.js b/embed_component.js index a79e90f..fb9014f 100644 --- a/embed_component.js +++ b/embed_component.js @@ -111,7 +111,7 @@ class EmbedComponent { p.append(a); p.append('] '); - wrapper.append(p); + wrapper.append(p); if (image.alt) { let details = $tag('details.image-alt'); diff --git a/models.js b/models.js index 8632774..bff65e3 100644 --- a/models.js +++ b/models.js @@ -114,7 +114,7 @@ class Post extends ATProtoRecord { this.viewerLike = data.viewer?.like; if (this.author) { - api.cacheProfile(this.author); + api.cacheProfile(this.author); } } @@ -307,7 +307,7 @@ class InlineRecordEmbed extends Embed { constructor(json) { super(json); this.post = Post.parse(json.record); - } + } } class InlineRecordWithMediaEmbed extends Embed { @@ -317,7 +317,7 @@ class InlineRecordWithMediaEmbed extends Embed { super(json); this.post = Post.parse(json.record.record); this.media = Embed.parse(json.media); - } + } } class InlineLinkEmbed extends Embed { diff --git a/post_component.js b/post_component.js index f28d3f1..5fe060f 100644 --- a/post_component.js +++ b/post_component.js @@ -126,7 +126,7 @@ class PostComponent { if (this.post.likeCount !== undefined && this.post.repostCount !== undefined) { let stats = this.buildStatsFooter(); - wrapper.appendChild(stats); + wrapper.appendChild(stats); } if (this.post.replies.length == 1 && this.post.replies[0].author?.did == this.post.author.did) { @@ -295,7 +295,7 @@ class PostComponent { if (blockStatus) { authorLink.after(`, ${blockStatus}`); } - }); + }); } let loadPost = $tag('p.load-post'); diff --git a/skythread.js b/skythread.js index e777d6b..501ac20 100644 --- a/skythread.js +++ b/skythread.js @@ -19,7 +19,7 @@ function init() { hideLogin(); } else { e.stopPropagation(); - } + } }); body.querySelector('#login .info a').addEventListener('click', (e) => { @@ -402,7 +402,7 @@ function loadThread(url, postId, nodeToUpdate) { let loadQuoteCount = blue.getQuoteCount(root.uri); if (!nodeToUpdate) { - setPageTitle(root); + setPageTitle(root); } if (root.parent && !nodeToUpdate) { -- 2.51.2