aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/canvas
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/canvas
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/canvas')
-rw-r--r--recipes/canvas/index.js2
-rw-r--r--recipes/canvas/package.json2
-rw-r--r--recipes/canvas/webview.js8
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/canvas/index.js b/recipes/canvas/index.js
index 23607bd..dd41f72 100644
--- a/recipes/canvas/index.js
+++ b/recipes/canvas/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; module.exports = Ferdium => Ferdium;
diff --git a/recipes/canvas/package.json b/recipes/canvas/package.json
index 7e856c5..a79ae39 100644
--- a/recipes/canvas/package.json
+++ b/recipes/canvas/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "canvas", 2 "id": "canvas",
3 "name": "Canvas", 3 "name": "Canvas",
4 "version": "1.0.3", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.instructure.com/", 7 "serviceURL": "https://{teamId}.instructure.com/",
diff --git a/recipes/canvas/webview.js b/recipes/canvas/webview.js
index 070a975..5294f66 100644
--- a/recipes/canvas/webview.js
+++ b/recipes/canvas/webview.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 let direct = 0; 3 let direct = 0;
4 4
@@ -6,11 +6,11 @@ module.exports = Ferdi => {
6 '[id=global_nav_conversations_link]', 6 '[id=global_nav_conversations_link]',
7 ); 7 );
8 if (MessageElement) { 8 if (MessageElement) {
9 direct += Ferdi.safeParseInt(MessageElement.textContent); 9 direct += Ferdium.safeParseInt(MessageElement.textContent);
10 } 10 }
11 11
12 Ferdi.setBadge(direct); 12 Ferdium.setBadge(direct);
13 }; 13 };
14 14
15 Ferdi.loop(getMessages); 15 Ferdium.loop(getMessages);
16}; 16};