aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pleroma
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/pleroma')
-rw-r--r--recipes/pleroma/index.js2
-rw-r--r--recipes/pleroma/package.json2
-rw-r--r--recipes/pleroma/webview.js12
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/pleroma/index.js b/recipes/pleroma/index.js
index 06a6e2d..67a0e19 100644
--- a/recipes/pleroma/index.js
+++ b/recipes/pleroma/index.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => class Pleroma extends Ferdi { 1module.exports = Ferdium => class Pleroma extends Ferdium {
2 async validateUrl(url) { 2 async validateUrl(url) {
3 try { 3 try {
4 const resp = await window.fetch(`${url}/api/v1/instance`, { 4 const resp = await window.fetch(`${url}/api/v1/instance`, {
diff --git a/recipes/pleroma/package.json b/recipes/pleroma/package.json
index 766a63c..de92244 100644
--- a/recipes/pleroma/package.json
+++ b/recipes/pleroma/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "pleroma", 2 "id": "pleroma",
3 "name": "Pleroma", 3 "name": "Pleroma",
4 "version": "1.2.1", 4 "version": "1.3.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "hasCustomUrl": true 7 "hasCustomUrl": true
diff --git a/recipes/pleroma/webview.js b/recipes/pleroma/webview.js
index c7a6530..41516f6 100644
--- a/recipes/pleroma/webview.js
+++ b/recipes/pleroma/webview.js
@@ -141,29 +141,29 @@ class LogoUpdater {
141 } 141 }
142} 142}
143 143
144module.exports = Ferdi => { 144module.exports = Ferdium => {
145 const getMessages = () => { 145 const getMessages = () => {
146 let directCount = 0; 146 let directCount = 0;
147 const matchArr = document.title.match(titleRegex); 147 const matchArr = document.title.match(titleRegex);
148 if (matchArr) { 148 if (matchArr) {
149 directCount = Ferdi.safeParseInt(matchArr[1]); 149 directCount = Ferdium.safeParseInt(matchArr[1]);
150 } 150 }
151 Ferdi.setBadge(directCount); 151 Ferdium.setBadge(directCount);
152 }; 152 };
153 153
154 getInstanceLogo().then( 154 getInstanceLogo().then(
155 ({ logo, logoMask }) => { 155 ({ logo, logoMask }) => {
156 const updater = new LogoUpdater(logo, logoMask); 156 const updater = new LogoUpdater(logo, logoMask);
157 Ferdi.loop(() => { 157 Ferdium.loop(() => {
158 getMessages(); 158 getMessages();
159 if (updater.update()) { 159 if (updater.update()) {
160 Ferdi.setAvatarImage(updater.toDataURL()); 160 Ferdium.setAvatarImage(updater.toDataURL());
161 } 161 }
162 }); 162 });
163 }, 163 },
164 error => { 164 error => {
165 console.log('Failed to load instance logo', error); 165 console.log('Failed to load instance logo', error);
166 Ferdi.loop(getMessages); 166 Ferdium.loop(getMessages);
167 }, 167 },
168 ); 168 );
169}; 169};