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/nextdoor/webview.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'recipes/nextdoor/webview.js') diff --git a/recipes/nextdoor/webview.js b/recipes/nextdoor/webview.js index e20c6b5..280d6a5 100644 --- a/recipes/nextdoor/webview.js +++ b/recipes/nextdoor/webview.js @@ -1,14 +1,12 @@ -"use strict"; - module.exports = Franz => { const getMessages = function getMessages() { - var unread = 0 - const notificationBadge = document.getElementsByClassName('notification-badge')[0] + let unread = 0; + const notificationBadge = document.getElementsByClassName('notification-badge')[0]; if (notificationBadge != undefined) { - unread = notificationBadge.innerText; + unread = notificationBadge.innerText; } Franz.setBadge(parseInt(unread, 10)); }; Franz.loop(getMessages); -}; \ No newline at end of file +}; -- cgit v1.2.3-70-g09d2