From 97697e3d069972844b2912a93022f4a4904a40d6 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 31 Jul 2021 15:28:23 +0530 Subject: Fixed eslintrc as root for this folder; Reformatted all files. --- recipes/yahoo-mail/index.js | 29 ++++++++++++++--------------- recipes/yahoo-mail/webview.js | 4 +--- 2 files changed, 15 insertions(+), 18 deletions(-) (limited to 'recipes/yahoo-mail') diff --git a/recipes/yahoo-mail/index.js b/recipes/yahoo-mail/index.js index 599e93c..b52af44 100644 --- a/recipes/yahoo-mail/index.js +++ b/recipes/yahoo-mail/index.js @@ -1,15 +1,14 @@ -module.exports = (Franz) => - class YahooMail extends Franz { - modifyRequestHeaders() { - return [ - { - headers: { - 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', - }, - requestFilters: { - urls: ['*://*/*'], - } - } - ] - } - }; +module.exports = (Franz) => class YahooMail extends Franz { + modifyRequestHeaders() { + return [ + { + headers: { + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', + }, + requestFilters: { + urls: ['*://*/*'], + }, + }, + ]; + } +}; diff --git a/recipes/yahoo-mail/webview.js b/recipes/yahoo-mail/webview.js index 1027838..fd5add1 100644 --- a/recipes/yahoo-mail/webview.js +++ b/recipes/yahoo-mail/webview.js @@ -1,8 +1,6 @@ -"use strict"; - module.exports = (Franz) => { const getMessages = function getMessages() { - let count = document.querySelector('a[data-test-folder-name="Inbox"]').getAttribute('data-test-unread-count'); + const count = document.querySelector('a[data-test-folder-name="Inbox"]').getAttribute('data-test-unread-count'); Franz.setBadge(count); }; -- cgit v1.2.3-70-g09d2