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/rocketchat/webview.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'recipes/rocketchat/webview.js') diff --git a/recipes/rocketchat/webview.js b/recipes/rocketchat/webview.js index 447b19b..1702c74 100644 --- a/recipes/rocketchat/webview.js +++ b/recipes/rocketchat/webview.js @@ -1,5 +1,3 @@ -'use strict'; - const { ipcRenderer } = require('electron'); const getTeamIcon = function getTeamIcon() { @@ -27,7 +25,7 @@ const getTeamIcon = function getTeamIcon() { if (response.icons.length >= 1) { ipcRenderer.sendToHost( 'avatar', - `${window.location.protocol}//${window.location.host}${response.icons[0].src}` + `${window.location.protocol}//${window.location.host}${response.icons[0].src}`, ); } }; @@ -47,7 +45,7 @@ module.exports = Ferdi => { } const indirectMessagesCount = Math.round( - document.querySelectorAll('.rcx-sidebar-item--highlighted').length + document.querySelectorAll('.rcx-sidebar-item--highlighted').length, ); Ferdi.setBadge(directMessagesCount, indirectMessagesCount); -- cgit v1.2.3-70-g09d2