aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zendesk/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/zendesk/webview.js
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/zendesk/webview.js')
-rw-r--r--recipes/zendesk/webview.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes/zendesk/webview.js b/recipes/zendesk/webview.js
index e080b07..8bc58ac 100644
--- a/recipes/zendesk/webview.js
+++ b/recipes/zendesk/webview.js
@@ -2,7 +2,7 @@ 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 = Franz => { 5module.exports = Ferdi => {
6 const getMessages = () => { 6 const getMessages = () => {
7 let count = 0; 7 let count = 0;
8 const el = document.querySelector('.dashboard-top-panel .indicators .stats-group .cell-value'); 8 const el = document.querySelector('.dashboard-top-panel .indicators .stats-group .cell-value');
@@ -11,9 +11,10 @@ module.exports = Franz => {
11 count = parseInt(el.innerHTML, 10); 11 count = parseInt(el.innerHTML, 10);
12 } 12 }
13 13
14 Franz.setBadge(count); 14 Ferdi.setBadge(count);
15 }; 15 };
16 16
17 Franz.loop(getMessages); 17 Ferdi.loop(getMessages);
18 Franz.injectCSS(_path.default.join(__dirname, 'service.css')); 18
19 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
19}; 20};