diff options
Diffstat (limited to 'recipes/freshdesk')
-rw-r--r-- | recipes/freshdesk/index.js | 2 | ||||
-rw-r--r-- | recipes/freshdesk/package.json | 2 | ||||
-rw-r--r-- | recipes/freshdesk/webview.js | 6 |
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 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.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) { |