aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/devRant
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/devRant
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/devRant')
-rw-r--r--recipes/devRant/index.js2
-rw-r--r--recipes/devRant/package.json2
-rw-r--r--recipes/devRant/webview.js12
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/devRant/index.js b/recipes/devRant/index.js
index 23607bd..dd41f72 100644
--- a/recipes/devRant/index.js
+++ b/recipes/devRant/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; module.exports = Ferdium => Ferdium;
diff --git a/recipes/devRant/package.json b/recipes/devRant/package.json
index 4611754..edb0c40 100644
--- a/recipes/devRant/package.json
+++ b/recipes/devRant/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "devRant", 2 "id": "devRant",
3 "name": "devRant", 3 "name": "devRant",
4 "version": "1.0.3", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/emamut/recipe-devrant", 6 "repository": "https://github.com/emamut/recipe-devrant",
7 "config": { 7 "config": {
diff --git a/recipes/devRant/webview.js b/recipes/devRant/webview.js
index 7385db5..efe0d71 100644
--- a/recipes/devRant/webview.js
+++ b/recipes/devRant/webview.js
@@ -15,7 +15,7 @@ setTimeout(() => {
15 } 15 }
16}, 1000); 16}, 1000);
17 17
18module.exports = (Ferdi, settings) => { 18module.exports = (Ferdium, settings) => {
19 const getMessages = () => { 19 const getMessages = () => {
20 const elements = document.querySelectorAll('.CxUIE, .unread, ._0LqQ'); 20 const elements = document.querySelectorAll('.CxUIE, .unread, ._0LqQ');
21 let count = 0; 21 let count = 0;
@@ -28,11 +28,11 @@ module.exports = (Ferdi, settings) => {
28 } 28 }
29 } 29 }
30 30
31 Ferdi.setBadge(count); 31 Ferdium.setBadge(count);
32 }; 32 };
33 33
34 window.addEventListener('beforeunload', async () => { 34 window.addEventListener('beforeunload', async () => {
35 Ferdi.clearStorageData(settings.id, { 35 Ferdium.clearStorageData(settings.id, {
36 storages: [ 36 storages: [
37 'appcache', 37 'appcache',
38 'serviceworkers', 38 'serviceworkers',
@@ -41,9 +41,9 @@ module.exports = (Ferdi, settings) => {
41 'indexdb', 41 'indexdb',
42 ], 42 ],
43 }); 43 });
44 Ferdi.releaseServiceWorkers(); 44 Ferdium.releaseServiceWorkers();
45 }); 45 });
46 46
47 Ferdi.loop(getMessages); 47 Ferdium.loop(getMessages);
48 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); 48 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
49}; 49};