aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pleroma
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-05 15:14:28 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-09-05 18:00:26 +0530
commita57a4edcb648d025254ede4d18d267b887ad0b8b (patch)
treec8b75e58cf108a55608f729218885abdb07fd42d /recipes/pleroma
parentAdd ability to use self-hosted option for 'youtrack' service (fixes #671) (diff)
downloadferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.tar.gz
ferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.tar.zst
ferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.zip
Remove dependency on 'require' of 'electron' and 'electron/remote' modules.
Instead, use the exposed content from the recipe model in main ferdi.
Diffstat (limited to 'recipes/pleroma')
-rw-r--r--recipes/pleroma/package.json2
-rw-r--r--recipes/pleroma/webview.js4
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes/pleroma/package.json b/recipes/pleroma/package.json
index 5a4fdf9..1592d7b 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.1.2", 4 "version": "1.2.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 2c97ab3..557f318 100644
--- a/recipes/pleroma/webview.js
+++ b/recipes/pleroma/webview.js
@@ -1,5 +1,3 @@
1const { ipcRenderer } = require('electron');
2
3const titleRegex = /^\((\d+)\)/; 1const titleRegex = /^\((\d+)\)/;
4 2
5const getJson = async (relativeUri) => { 3const getJson = async (relativeUri) => {
@@ -153,7 +151,7 @@ module.exports = Ferdi => {
153 Ferdi.loop(() => { 151 Ferdi.loop(() => {
154 getMessages(); 152 getMessages();
155 if (updater.update()) { 153 if (updater.update()) {
156 ipcRenderer.sendToHost('avatar', updater.toDataURL()); 154 Ferdi.ipcRenderer.sendToHost('avatar', updater.toDataURL());
157 } 155 }
158 }); 156 });
159 }, (e) => { 157 }, (e) => {