From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/zoom/webview.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/zoom/webview.js') diff --git a/recipes/zoom/webview.js b/recipes/zoom/webview.js index ab457c1..a72ef3a 100644 --- a/recipes/zoom/webview.js +++ b/recipes/zoom/webview.js @@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = (Ferdi, settings) => { +module.exports = (Ferdium, settings) => { const getMessages = () => { let directCount = 0; const directCountPerServer = document.querySelectorAll( @@ -12,19 +12,19 @@ module.exports = (Ferdi, settings) => { ); for (const directCountBadge of directCountPerServer) { - directCount += Ferdi.safeParseInt(directCountBadge.textContent); + directCount += Ferdium.safeParseInt(directCountBadge.textContent); } const indirectCountPerServer = document.querySelectorAll( '[class*="modeUnread-"]', ).length; - Ferdi.setBadge(directCount, indirectCountPerServer); + Ferdium.setBadge(directCount, indirectCountPerServer); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); // TODO: This whole block is duplicated between the 'discord' and 'skype' recipes - reuse document.addEventListener( @@ -43,7 +43,7 @@ module.exports = (Ferdi, settings) => { event.stopPropagation(); // TODO: Can we send an ipc event 'open-browser-window' to open the child window? (see the slack recipe for how to send an ipc message) // TODO: Can we change the slack recipe to add a clickHandler for screensharing/video calls? (https://github.com/ferdium/ferdium-app/issues/1697) - let win = new Ferdi.BrowserWindow({ + let win = new Ferdium.BrowserWindow({ width: 800, height: window.innerHeight, minWidth: 600, -- cgit v1.2.3-54-g00ecf