aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/freshdesk
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/freshdesk
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/freshdesk')
-rw-r--r--recipes/freshdesk/index.js2
-rw-r--r--recipes/freshdesk/package.json2
-rw-r--r--recipes/freshdesk/webview.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/freshdesk/index.js b/recipes/freshdesk/index.js
index f2cc5c2..dd41f72 100644
--- a/recipes/freshdesk/index.js
+++ b/recipes/freshdesk/index.js
@@ -1 +1 @@
module.exports = Ferdi => class Freshdesk extends Ferdi {}; module.exports = Ferdium => Ferdium;
diff --git a/recipes/freshdesk/package.json b/recipes/freshdesk/package.json
index 009dcfb..376ee0c 100644
--- a/recipes/freshdesk/package.json
+++ b/recipes/freshdesk/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "freshdesk", 2 "id": "freshdesk",
3 "name": "Freshdesk", 3 "name": "Freshdesk",
4 "version": "1.0.1", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/fisknils/recipe-freshdesk", 6 "repository": "https://github.com/fisknils/recipe-freshdesk",
7 "config": { 7 "config": {
diff --git a/recipes/freshdesk/webview.js b/recipes/freshdesk/webview.js
index e1911d0..3e0a201 100644
--- a/recipes/freshdesk/webview.js
+++ b/recipes/freshdesk/webview.js
@@ -1,11 +1,11 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 $.get('/api/_/tickets?filter=unresolved', (data) => { 3 $.get('/api/_/tickets?filter=unresolved', (data) => {
4 Ferdi.setBadge(data.tickets.length); 4 Ferdium.setBadge(data.tickets.length);
5 }); 5 });
6 }; 6 };
7 7
8 Ferdi.loop(getMessages); 8 Ferdium.loop(getMessages);
9 9
10/* block popups (prevents freshconnect from opening in a new window) */ 10/* block popups (prevents freshconnect from opening in a new window) */
11 window.open = (function(url, name) { 11 window.open = (function(url, name) {