aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/yammer
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/yammer
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/yammer')
-rw-r--r--recipes/yammer/index.js4
-rw-r--r--recipes/yammer/webview.js8
2 files changed, 4 insertions, 8 deletions
diff --git a/recipes/yammer/index.js b/recipes/yammer/index.js
index e8243fb..258da41 100644
--- a/recipes/yammer/index.js
+++ b/recipes/yammer/index.js
@@ -1,3 +1 @@
1"use strict"; module.exports = Franz => Franz;
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/yammer/webview.js b/recipes/yammer/webview.js
index 8f80675..8ec7a11 100644
--- a/recipes/yammer/webview.js
+++ b/recipes/yammer/webview.js
@@ -1,11 +1,9 @@
1"use strict";
2
3module.exports = Franz => { 1module.exports = Franz => {
4 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
5 let directMessages = 0; 3 let directMessages = 0;
6 let indirectMessages = 0; 4 let indirectMessages = 0;
7 const notificationElement = document.querySelector(".yj-notifications-indicator-count"); 5 const notificationElement = document.querySelector('.yj-notifications-indicator-count');
8 const newMessagesElement = document.querySelector(".yj-thread-list--new-messages-notice:not(.is-hidden) .yj-thread-list--new-message-text"); 6 const newMessagesElement = document.querySelector('.yj-thread-list--new-messages-notice:not(.is-hidden) .yj-thread-list--new-message-text');
9 7
10 if (notificationElement && notificationElement.innerHTML.length) { 8 if (notificationElement && notificationElement.innerHTML.length) {
11 directMessages = parseInt(notificationElement.innerHTML, 10); 9 directMessages = parseInt(notificationElement.innerHTML, 10);
@@ -19,4 +17,4 @@ module.exports = Franz => {
19 }; 17 };
20 18
21 Franz.loop(getMessages); 19 Franz.loop(getMessages);
22}; \ No newline at end of file 20};