From 2484c63d77e05fff384cc08b6ea46a29a22a62ec Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 5 Oct 2021 16:46:55 +0200 Subject: chore: repo maintenance (#732) --- recipes/mastodon/index.js | 4 ++-- recipes/mastodon/webview.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/mastodon') diff --git a/recipes/mastodon/index.js b/recipes/mastodon/index.js index 1dd93cc..9be0938 100644 --- a/recipes/mastodon/index.js +++ b/recipes/mastodon/index.js @@ -1,9 +1,9 @@ -module.exports = (Ferdi) => { +module.exports = Ferdi => { class Mastodon extends Ferdi { validateServer(URL) { const api = `${URL}`; return new Promise((resolve, reject) => { - $.get(api, (resp) => { + $.get(api, () => { resolve(); }).fail(reject); }); diff --git a/recipes/mastodon/webview.js b/recipes/mastodon/webview.js index 4b450a1..8fb448f 100644 --- a/recipes/mastodon/webview.js +++ b/recipes/mastodon/webview.js @@ -1,11 +1,11 @@ -module.exports = (Ferdi) => { +module.exports = Ferdi => { let latestStatement = $('.status time').attr('datetime'); let latestNotify = $($('.notification__message span').get(0)).text(); - $($('div.column div.scrollable').get(0)).on('scroll', (ev) => { + $($('div.column div.scrollable').get(0)).on('scroll', () => { latestStatement = $('.status time').attr('datetime'); }); - $($('div.column div.scrollable').get(1)).on('scroll', (ev) => { + $($('div.column div.scrollable').get(1)).on('scroll', () => { latestNotify = $($('.notification__message span').get(0)).text(); }); @@ -22,7 +22,7 @@ module.exports = (Ferdi) => { } Ferdi.setBadge(reply, unread); - } + }; Ferdi.loop(getMessages); }; -- cgit v1.2.3-70-g09d2