From a86245afc0c4aaca259d5c3f014794dbc4d913de Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 27 Sep 2021 05:25:50 +0530 Subject: refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstraction layer instead for better maintainance --- recipes/pleroma/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/pleroma/webview.js') diff --git a/recipes/pleroma/webview.js b/recipes/pleroma/webview.js index 557f318..da76955 100644 --- a/recipes/pleroma/webview.js +++ b/recipes/pleroma/webview.js @@ -151,7 +151,7 @@ module.exports = Ferdi => { Ferdi.loop(() => { getMessages(); if (updater.update()) { - Ferdi.ipcRenderer.sendToHost('avatar', updater.toDataURL()); + Ferdi.setAvatarImage(updater.toDataURL()); } }); }, (e) => { -- cgit v1.2.3-54-g00ecf