diff options
Diffstat (limited to 'recipes/pleroma')
-rw-r--r-- | recipes/pleroma/index.js | 6 | ||||
-rw-r--r-- | recipes/pleroma/webview.js | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/recipes/pleroma/index.js b/recipes/pleroma/index.js index c6cf368..06a6e2d 100644 --- a/recipes/pleroma/index.js +++ b/recipes/pleroma/index.js | |||
@@ -6,9 +6,9 @@ module.exports = Ferdi => class Pleroma extends Ferdi { | |||
6 | }); | 6 | }); |
7 | const data = await resp.json(); | 7 | const data = await resp.json(); |
8 | const version = data.version; | 8 | const version = data.version; |
9 | return typeof (version) === 'string' && version.indexOf('Pleroma') >= 0; | 9 | return typeof (version) === 'string' && version.includes('Pleroma'); |
10 | } catch (err) { | 10 | } catch (error) { |
11 | console.log('Pleroma server validation error', err); | 11 | console.log('Pleroma server validation error', error); |
12 | } | 12 | } |
13 | return false; | 13 | return false; |
14 | } | 14 | } |
diff --git a/recipes/pleroma/webview.js b/recipes/pleroma/webview.js index 2ba184e..c7a6530 100644 --- a/recipes/pleroma/webview.js +++ b/recipes/pleroma/webview.js | |||
@@ -15,8 +15,8 @@ const getInstanceConfig = async () => { | |||
15 | ); | 15 | ); |
16 | const pleromaFeConfig = frontendConfig.pleroma_fe || {}; | 16 | const pleromaFeConfig = frontendConfig.pleroma_fe || {}; |
17 | return { ...staticConfig, ...pleromaFeConfig }; | 17 | return { ...staticConfig, ...pleromaFeConfig }; |
18 | } catch (e) { | 18 | } catch (error) { |
19 | console.log('Failed to load dynamic frontend configuration', e); | 19 | console.log('Failed to load dynamic frontend configuration', error); |
20 | return staticConfig; | 20 | return staticConfig; |
21 | } | 21 | } |
22 | }; | 22 | }; |
@@ -161,8 +161,8 @@ module.exports = Ferdi => { | |||
161 | } | 161 | } |
162 | }); | 162 | }); |
163 | }, | 163 | }, |
164 | e => { | 164 | error => { |
165 | console.log('Failed to load instance logo', e); | 165 | console.log('Failed to load instance logo', error); |
166 | Ferdi.loop(getMessages); | 166 | Ferdi.loop(getMessages); |
167 | }, | 167 | }, |
168 | ); | 168 | ); |