aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hangouts
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/hangouts')
-rw-r--r--recipes/hangouts/index.js2
-rw-r--r--recipes/hangouts/package.json2
-rw-r--r--recipes/hangouts/webview.js10
3 files changed, 6 insertions, 8 deletions
diff --git a/recipes/hangouts/index.js b/recipes/hangouts/index.js
index 4132ba2..0a1336f 100644
--- a/recipes/hangouts/index.js
+++ b/recipes/hangouts/index.js
@@ -1,2 +1,2 @@
1module.exports = (Franz) => class Hangouts extends Franz { 1module.exports = (Ferdi) => class Hangouts extends Ferdi {
2}; 2};
diff --git a/recipes/hangouts/package.json b/recipes/hangouts/package.json
index 0830635..cad4216 100644
--- a/recipes/hangouts/package.json
+++ b/recipes/hangouts/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "hangouts", 2 "id": "hangouts",
3 "name": "Hangouts", 3 "name": "Hangouts",
4 "version": "1.1.2", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://hangouts.google.com", 7 "serviceURL": "https://hangouts.google.com",
diff --git a/recipes/hangouts/webview.js b/recipes/hangouts/webview.js
index 8d588e9..41fced1 100644
--- a/recipes/hangouts/webview.js
+++ b/recipes/hangouts/webview.js
@@ -1,13 +1,11 @@
1module.exports = Franz => { 1module.exports = Ferdi => {
2 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
3 // get unread messages 3 // get unread messages
4 const count = document.querySelector('#hangout-landing-chat iframe').contentWindow.document.querySelectorAll('.ee').length; 4 const count = document.querySelector('#hangout-landing-chat iframe').contentWindow.document.querySelectorAll('.ee').length;
5 5
6 // set Franz badge 6 // set Ferdi badge
7 Franz.setBadge(count); 7 Ferdi.setBadge(count);
8 }; 8 };
9 9
10 // check for new messages every second and update Franz badge 10 Ferdi.loop(getMessages);
11 Franz.loop(getMessages);
12}; 11};
13// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJza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