aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/jira
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/jira
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/jira')
-rw-r--r--recipes/jira/index.js4
-rw-r--r--recipes/jira/package.json2
-rw-r--r--recipes/jira/webview.js6
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/jira/index.js b/recipes/jira/index.js
index 038749a..ba77d96 100644
--- a/recipes/jira/index.js
+++ b/recipes/jira/index.js
@@ -1,5 +1,5 @@
1module.exports = (Ferdi) => class Jira extends Ferdi { 1module.exports = (Ferdium) => class Jira extends Ferdium {
2 overrideUserAgent() { 2 overrideUserAgent() {
3 return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); 3 return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim();
4 } 4 }
5}; 5};
diff --git a/recipes/jira/package.json b/recipes/jira/package.json
index 4e70918..7cc0aa5 100644
--- a/recipes/jira/package.json
+++ b/recipes/jira/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "jira", 2 "id": "jira",
3 "name": "Jira", 3 "name": "Jira",
4 "version": "1.3.2", 4 "version": "1.4.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.atlassian.net", 7 "serviceURL": "https://{teamId}.atlassian.net",
diff --git a/recipes/jira/webview.js b/recipes/jira/webview.js
index 9599b66..1859067 100644
--- a/recipes/jira/webview.js
+++ b/recipes/jira/webview.js
@@ -1,11 +1,11 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 // get unread messages 3 // get unread messages
4 const element = document.querySelector( 4 const element = document.querySelector(
5 '#atlassian-navigation-notification-count span', 5 '#atlassian-navigation-notification-count span',
6 ); 6 );
7 Ferdi.setBadge(element ? element.textContent : 0); 7 Ferdium.setBadge(element ? element.textContent : 0);
8 }; 8 };
9 9
10 Ferdi.loop(getMessages); 10 Ferdium.loop(getMessages);
11}; 11};