aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/dialpad
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/dialpad')
-rw-r--r--recipes/dialpad/index.js2
-rw-r--r--recipes/dialpad/package.json2
-rw-r--r--recipes/dialpad/webview.js10
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/dialpad/index.js b/recipes/dialpad/index.js
index 23607bd..dd41f72 100644
--- a/recipes/dialpad/index.js
+++ b/recipes/dialpad/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; module.exports = Ferdium => Ferdium;
diff --git a/recipes/dialpad/package.json b/recipes/dialpad/package.json
index 14ca8e3..18f8561 100644
--- a/recipes/dialpad/package.json
+++ b/recipes/dialpad/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "dialpad", 2 "id": "dialpad",
3 "name": "Dialpad", 3 "name": "Dialpad",
4 "version": "1.0.1", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/TheKevJames/franz-recipe-dialpad", 6 "repository": "https://github.com/TheKevJames/franz-recipe-dialpad",
7 "config": { 7 "config": {
diff --git a/recipes/dialpad/webview.js b/recipes/dialpad/webview.js
index a5c6e4a..75b53d6 100644
--- a/recipes/dialpad/webview.js
+++ b/recipes/dialpad/webview.js
@@ -2,15 +2,15 @@ const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = (Ferdi) => { 5module.exports = (Ferdium) => {
6 const getMessages = () => { 6 const getMessages = () => {
7 var unreadCount = 0; 7 var unreadCount = 0;
8 $.each($('[data-qa-has-unreads]'), (idx, item) => unreadCount += Ferdi.safeParseInt(item.attributes["data-qa-has-unreads"].value)); 8 $.each($('[data-qa-has-unreads]'), (idx, item) => unreadCount += Ferdium.safeParseInt(item.attributes["data-qa-has-unreads"].value));
9 9
10 Ferdi.setBadge(unreadCount); 10 Ferdium.setBadge(unreadCount);
11 } 11 }
12 12
13 Ferdi.loop(getMessages); 13 Ferdium.loop(getMessages);
14 14
15 Ferdi.injectCSS(_path.default.join(__dirname, 'whitemode.css')); 15 Ferdium.injectCSS(_path.default.join(__dirname, 'whitemode.css'));
16}; 16};