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/skype/webview.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'recipes/skype/webview.js') diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js index d7d3ca6..a488699 100644 --- a/recipes/skype/webview.js +++ b/recipes/skype/webview.js @@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = (Ferdi, settings) => { +module.exports = (Ferdium, settings) => { const getMessages = () => { let count = 0; const container = document.querySelector('[role="tablist"] > button > div'); @@ -16,19 +16,19 @@ module.exports = (Ferdi, settings) => { if (elementContainer) { const element = elementContainer.querySelector('[data-text-as-pseudo-element]'); if (element && element.dataset) { - count = Ferdi.safeParseInt(element.dataset.textAsPseudoElement); + count = Ferdium.safeParseInt(element.dataset.textAsPseudoElement); } } } } - Ferdi.setBadge(count); + Ferdium.setBadge(count); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); - Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); // TODO: This whole block is duplicated between the 'discord' and 'skype' recipes - reuse document.addEventListener('click', event => { @@ -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