diff options
Diffstat (limited to 'recipes/pleroma/webview.js')
-rw-r--r-- | recipes/pleroma/webview.js | 4 |
1 files changed, 1 insertions, 3 deletions
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 @@ | |||
1 | const { ipcRenderer } = require('electron'); | ||
2 | |||
3 | const titleRegex = /^\((\d+)\)/; | 1 | const titleRegex = /^\((\d+)\)/; |
4 | 2 | ||
5 | const getJson = async (relativeUri) => { | 3 | const 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) => { |