aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/thelounge/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/thelounge/webview.js')
-rw-r--r--recipes/thelounge/webview.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/thelounge/webview.js b/recipes/thelounge/webview.js
index 394c867..5d3dbb7 100644
--- a/recipes/thelounge/webview.js
+++ b/recipes/thelounge/webview.js
@@ -25,7 +25,7 @@ function countsOfUnreadMessagesAfterMarker(unreadMarker) {
25 return [unread, unreadHighlighted]; 25 return [unread, unreadHighlighted];
26} 26}
27 27
28module.exports = Ferdi => { 28module.exports = Ferdium => {
29 var unreadMessagesAtLastActivity = 0; 29 var unreadMessagesAtLastActivity = 0;
30 var unreadHighlightedMessagesAtLastActivity = 0; 30 var unreadHighlightedMessagesAtLastActivity = 0;
31 31
@@ -41,7 +41,7 @@ module.exports = Ferdi => {
41 41
42 for (const directElement of directElements) { 42 for (const directElement of directElements) {
43 if (directElement.textContent.length > 0) { 43 if (directElement.textContent.length > 0) {
44 direct += Ferdi.safeParseInt(directElement.textContent); 44 direct += Ferdium.safeParseInt(directElement.textContent);
45 } 45 }
46 } 46 }
47 47
@@ -79,13 +79,13 @@ module.exports = Ferdi => {
79 unreadHighlightedMessagesAtLastActivity = 0; 79 unreadHighlightedMessagesAtLastActivity = 0;
80 } 80 }
81 81
82 Ferdi.setBadge(direct, indirect); 82 Ferdium.setBadge(direct, indirect);
83 }; 83 };
84 84
85 Ferdi.loop(getMessages); 85 Ferdium.loop(getMessages);
86 86
87 // We need to monkey patch ServierWorker.postMessage so that notifications 87 // We need to monkey patch ServierWorker.postMessage so that notifications
88 // will work, and that needs to be done without context isolation: 88 // will work, and that needs to be done without context isolation:
89 const path = require('path'); 89 const path = require('path');
90 Ferdi.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); 90 Ferdium.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js'));
91}; 91};