aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/lib
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-24 15:15:42 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-24 15:15:42 +0200
commit54f8b191a94bd78a85b046bbf21dd2245d3a6f3e (patch)
treeada5876f0e8a697ba4693bba07f5e0f31fea1fc9 /src/webview/lib
parentUpdate submodules (diff)
parentbump version to 5.4.0 (diff)
downloadferdium-app-54f8b191a94bd78a85b046bbf21dd2245d3a6f3e.tar.gz
ferdium-app-54f8b191a94bd78a85b046bbf21dd2245d3a6f3e.tar.zst
ferdium-app-54f8b191a94bd78a85b046bbf21dd2245d3a6f3e.zip
Merge https://github.com/meetfranz/franz into franz-5.4.0-release
Diffstat (limited to 'src/webview/lib')
-rw-r--r--src/webview/lib/RecipeWebview.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js
index 877e45e35..74d05fc2d 100644
--- a/src/webview/lib/RecipeWebview.js
+++ b/src/webview/lib/RecipeWebview.js
@@ -1,7 +1,8 @@
1// @flow
2const { ipcRenderer } = require('electron'); 1const { ipcRenderer } = require('electron');
3const fs = require('fs-extra'); 2const fs = require('fs-extra');
4 3
4const debug = require('debug')('Franz:Plugin:RecipeWebview');
5
5class RecipeWebview { 6class RecipeWebview {
6 constructor() { 7 constructor() {
7 this.countCache = { 8 this.countCache = {
@@ -11,6 +12,8 @@ class RecipeWebview {
11 12
12 ipcRenderer.on('poll', () => { 13 ipcRenderer.on('poll', () => {
13 this.loopFunc(); 14 this.loopFunc();
15
16 debug('Poll event');
14 }); 17 });
15 } 18 }
16 19
@@ -50,8 +53,11 @@ class RecipeWebview {
50 indirect: indirectInt > 0 ? indirectInt : 0, 53 indirect: indirectInt > 0 ? indirectInt : 0,
51 }; 54 };
52 55
56
53 ipcRenderer.sendToHost('messages', count); 57 ipcRenderer.sendToHost('messages', count);
54 Object.assign(this.countCache, count); 58 Object.assign(this.countCache, count);
59
60 debug('Sending badge count to host', count);
55 } 61 }
56 62
57 /** 63 /**
@@ -67,6 +73,8 @@ class RecipeWebview {
67 styles.innerHTML = data.toString(); 73 styles.innerHTML = data.toString();
68 74
69 document.querySelector('head').appendChild(styles); 75 document.querySelector('head').appendChild(styles);
76
77 debug('Append styles', styles);
70 }); 78 });
71 } 79 }
72 80